Skip to content

perf: optimize landing page performance for 100% Lighthouse mobile score - #625

Closed
singhaditya21 wants to merge 1 commit into
tailcallhq:developfrom
singhaditya21:perf/lighthouse-score-217
Closed

perf: optimize landing page performance for 100% Lighthouse mobile score#625
singhaditya21 wants to merge 1 commit into
tailcallhq:developfrom
singhaditya21:perf/lighthouse-score-217

Conversation

@singhaditya21

Copy link
Copy Markdown

Resolves #217

Modifications

  1. Deferred Chatbot Script: Made the Robofy chatbot widget async/defer in docusaurus.config.ts, eliminating it from the render-blocking path.
  2. Split GraphiQL CSS Bundle: Removed static imports of the 404 KB GraphiQL CSS bundle in Playground.tsx and 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).
  3. Optimized Google Fonts: Removed @import in custom.css in favor of preconnecting to Google Font domains and loading the stylesheet in parallel in the HTML head.
  4. Converted Images to WebP: Batch converted all homepage PNG images to highly compressed WebP format (saving ~205 KB on map background image and other feature illustrations).
  5. Fixed Unsized Images: Added explicit width and height attributes to company logos and description cards, resolving layout shifts and the unsized-images Lighthouse audit.
  6. Enabled Docusaurus Faster: Enabled experimental_faster: true for faster compilation and improved SWC minification of assets.

…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.
@singhaditya21

Copy link
Copy Markdown
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!

@singhaditya21

Copy link
Copy Markdown
Author

Closing — repository appears inactive and this PR is no longer being maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

performance: Get a 100% score for mobile on LightHouse metrics /

1 participant