Expo build:web builds huge bundle and slow website with bad performance

The bundle size produced by expo build:web is huge at average 2 or 3mb.

I completed steps at https://docs.expo.io/guides/web-performance/. My app has no images so no real issue to optimise them. Other suggested improvements changed very little.

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (48.8 KiB). This can impact web performance.
  app (3.2 MiB)

The result of this is a webpage which peforms extremely poorly.

If I run google “lightspeed” (pagespeed insights) on the result in browser, I get extremely poor ratings for initial page load.

Can the Expo team shed any insight on this?

I am thinking a potential way to solve, is branch off, then eject, then remove all unecessary APIs to reduce bundle size.

I’ve also added lazy load on some components without much improvement.

Are there any other suggestions you might have?

Also attached are the google lightspeed test results.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.