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

[core] Fix a few performance issues in Toolpad production apps #3756

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

Janpot
Copy link
Member

@Janpot Janpot commented Jul 4, 2024

On top of #3755

Address a few low-hanging fruits from the lighthouse report

  • non-render-blocking fonts
  • smaller font file
  • viewport meta tag
  • compression

Before:
Screenshot 2024-07-04 at 16 23 21

After:
Screenshot 2024-07-04 at 16 19 32

@Janpot Janpot added the core Infrastructure work going on behind the scenes label Jul 4, 2024
@Janpot Janpot marked this pull request as ready for review July 4, 2024 14:58
@Janpot Janpot requested a review from a team July 4, 2024 14:58
@Janpot Janpot merged commit bccc7a6 into mui:master Jul 5, 2024
14 checks passed
@Janpot Janpot deleted the lighthouse branch July 5, 2024 07:53
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link rel="preload" href="${FONTS_URL}" as="style" onload="this.onload=null;this.rel='stylesheet'">
Copy link
Member

Choose a reason for hiding this comment

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

Sorry for not reviewing earlier!
All looks good, not sure if these would also help with font loading performance:

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />

Copy link
Member Author

@Janpot Janpot Jul 14, 2024

Choose a reason for hiding this comment

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

I don't think it would make a difference, the browser will already be loading the font asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants