hupe1980 / gatsby-plugin-material-ui

Gatsby plugin for Material-UI with built-in server-side rendering support
MIT License
136 stars 25 forks source link

Noticeable performance hit comparing to gatsby-plugin-emotion #84

Open mwskwong opened 2 years ago

mwskwong commented 2 years ago

So I have been using gatsby-plugin-emotion without knowing the existence of this plugin. When I use gatsby-plugin-material-ui, it does solve the layout shifts on various components (e.g. those using :first-child). Yet, the Lighthouse score takes a big hit. I got significantly lower FCP, LCP, and Speed Index scores.

And I'm not sure what's the cause of the performance it. Is it because of the CacheProvider?

Stackoverflow question for ref.: https://stackoverflow.com/q/69906974/10579013

May personal site for comparison: Build using gatsby-plugin-material-ui: https://4c73fa3b.mwskwong.pages.dev/ Build using gatsby-plugin-emotion: https://1214827f.mwskwong.pages.dev/