[docs-infra] Improve Typedocs HTML Weight#4497
Draft
dav-is wants to merge 12 commits intomui:masterfrom
Draft
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for base-ui ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
…-is/base-ui into docs-infra/improve-types-html-weight
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.
Pairs with upstream PR: mui/mui-public#1269
Defers detailed type code highlighting until after hydration. Significantly decreases uncompressed HTML size, HTML parse time, RSC prop parse time, and render time.
Combobox Benchmark
Decreases the page's uncompressed HTML size by 30% with the tradeoff of increasing the compressed HTML by 5%. Brings it below the 2 MB limit for search engine crawlers.
Improves first contentful paint and hydration time by 42 ms. Achieved by reducing HTML parse time by 34%, scripting time (to parse the RSC props) by 31%, and reducing time to calculate styles by 30% ("Recalculating Styles" in performance trace).
Before:

After:

changing network conditions resulted in slightly offset timing between the two runs
Preview Deployment