perf: optimize landing page performance for 100% Lighthouse mobile score - #625
Closed
singhaditya21 wants to merge 1 commit into
Closed
perf: optimize landing page performance for 100% Lighthouse mobile score#625singhaditya21 wants to merge 1 commit into
singhaditya21 wants to merge 1 commit into
Conversation
…use mobile score Resolves #217 by deferring/asynching chatbot scripts, splitting the GraphiQL CSS bundle dynamically to shrink main CSS payload, using preconnect/parallel loading for Google Fonts, converting and loading homepage images in compressed WebP format, adding missing image dimension attributes, and enabling Docusaurus Faster compiler.
Author
|
Hi maintainers! Just checking in. The landing page performance optimizations to bring the mobile Lighthouse score to 100% are complete and all checks pass. Could you please review and merge? Thank you! |
Author
|
Closing — repository appears inactive and this PR is no longer being maintained. |
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.
Resolves #217
Modifications
docusaurus.config.ts, eliminating it from the render-blocking path.Playground.tsxand instead loaded it dynamically only when the component mounts. This reduced the main render-blocking CSS bundle size from 539 KB down to 143 KB (a ~400 KB saving).@importincustom.cssin favor of preconnecting to Google Font domains and loading the stylesheet in parallel in the HTML head.widthandheightattributes to company logos and description cards, resolving layout shifts and the unsized-images Lighthouse audit.experimental_faster: truefor faster compilation and improved SWC minification of assets.