My lightweight web app has an initial load time of over 4 seconds. I have been investigating it. I realized that the font files take extremely long to load. They are all pretty big:
I read into the topic and found out that normally when you build the app for the web for release, the font files get "tree shaken". Indeed, when I download the code and build the app locally with flutter build web --release
, they get >99% smaller.
So why are the font files so big and take long to load when I build and publish via FlutterFlow?