Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Reduce layout shift on landing page #27251

Merged
merged 2 commits into from
Jul 14, 2021
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jul 13, 2021

Reduces the cumulative layout shift to 0.002 (was 0.003).

eps1lon added 2 commits July 13, 2021 13:32

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@eps1lon eps1lon added docs Improvements or additions to the documentation performance labels Jul 13, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Jul 13, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against 6db8811

@eps1lon eps1lon marked this pull request as ready for review July 13, 2021 13:29

return (
<div className={classes.root}>
<Typography variant="caption">{t('homeQuickWord')}</Typography>
<NoSsr defer>
{backer === null ? (
<Typography variant="body2">&nbsp;</Typography>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice :)

@oliviertassinari
Copy link
Member

oliviertassinari commented Jul 13, 2021

Since Danilo and Jun targets to rewrite this page by the end of the summer, I guess the main value is to get a high baseline we can compare the new implementation against 😈, ideally we would get 0 layout shift.

@eps1lon
Copy link
Member Author

eps1lon commented Jul 14, 2021

I guess the main value is to get a high baseline we can compare the new implementation against smiling_imp, ideally we would get 0 layout shift.

That will be the next step. I think it's only caused by font loading and for that we may be able to leverage *-override @font-face properties.

@eps1lon eps1lon merged commit 2b6fff7 into mui:next Jul 14, 2021
@eps1lon eps1lon deleted the docs/layout-shift branch July 14, 2021 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants