Repository navigation
fix: raise Lighthouse scores to 100 on the landing page - #336
Merged
Merged
Conversation
- Subset the Material Symbols font (422 KB to 13.5 KB). IconComponent falls back to the full font for icons that are not in the subset. - Swap firacode for @fontsource-variable/fira-code (36 KB Latin file). - Load modals on demand and defer the desktop sidebar, item details and settings editor, so the landing page loads less JS. - Show a static splash from index.html until the app loads. - Add a meta description, robots.txt and llms.txt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On mobile, the landing page scored 75 in Lighthouse Performance and 82 in SEO. It loaded about 1 MB before the first content showed, including a 422 KB icon font. Mobile LCP was 8 s on simulated slow 4G.
All four categories (Performance, Accessibility, Best Practices, SEO) now score 100 on mobile and desktop, in 3 of 3 runs each.
What changed
IconComponentsets[data-full]on an icon outside the subset (for example, one from server settings), which loads the full font, so that icon still shows. After you add icons, runbun config/icon-subset.ts(needs fontTools).firacode(103 KB per weight) for@fontsource-variable/fira-code(one 36 KB Latin file for all weights).lgbreakpoint, with a placeholder of the same size so nothing shifts. The item details and tabs, and the settings editor, load only when shown. A localmoveItemInArrayreplaces a CDK import that pulled a 56 KB drag-drop chunk onto every page. The systems route lazy JS drops from 217 KB to 155 KB gzipped.index.htmlshows a static splash until the app loads, so users no longer see a blank page before Angular boots. Lighthouse also uses its title as the largest contentful paint, and this gives most of the mobile gain. The list itself still takes about 2.6 s on simulated mobile. Comments inindex.htmlandapp.tsexplain the rules that keep this working, and there is a note inAGENTS.md.robots.txtandllms.txt. Lighthouse fetches the last two from the domain root, so they only count when Backoffice is hosted at the root.Not in this PR
#/systems/<id>/aboutimprove from 72/88 to 99/94. The remaining gap is a layout shift from the Monaco settings editor's first render, which existed before this change./.well-known/ard.json. With anindex.htmlfallback, it scores 75. No ARD manifest is added, because Backoffice has no agent resources to list.Testing
bunx nx test backoffice: 993 passed, including a new test for the icon font fallbackbun run lint: passes/?mock=true)Reviewed with sol-loop: 1 round with gpt-6.1-sol on xhigh. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code