Unless your website is some kind of game or application why the hell does it have 2 megs of JS? Remove your shitty tracking and ad code.
- Every single database read depended on it
- Many of them were subscriptions rather than simple reads, and so couldn’t be trivially replaced by an API call.
Don’t use firebase guys.
You can see the size of each bundle in here: https://firebase.google.com/docs/web/sdk-metrics