GoogleChromeLabs / react-shrine

"Shrine" Progressive Web App sample built with React
https://react-shrine.web.app/
Apache License 2.0
331 stars 54 forks source link

Optimize bundle size #8

Open addyosmani opened 6 years ago

addyosmani commented 6 years ago

After adding code-splitting, Brotli, preloading and preconnect, the app is hitting a TTI of ~3.7s on WebPageTest. I'd like to see if there's opportunity to do better.

Bundle size is roughly ~70KB over the wire (compressed). If we unpack this using source-map-explorer, it looks like this:

image

Biggest offenders

jonchenn commented 5 years ago

I can take on this one.

addyosmani commented 5 years ago

Sgtm!