Firebase v9 loads a large iframe.js (263K) on mobile

221 views
Skip to first unread message

Guy Dumais Digital

unread,
Aug 10, 2021, 12:18:39 PM8/10/21
to Firebase Google Group
After upgrading Firebase from V8 to V9, on mobile version only, there is an IFRAME loading a huge javascript file (263K) from https://[Firebase projectId].firebaseapp.com/__/auth/iframe.js (See image below):

Firebase-Web-V9-huge-iframe-js.png

The only clue I've found so far is that it could be related to third-party cookies restrictions in chrome as mentioned in this forum: https://groups.google.com/g/firebase-talk/c/TC1xTPG85EI.

I'm not using any cookie restrictions in Chrome since all cookies are allowed based on settings here: chrome://settings/cookies?search=cookies

Also, I have disabled Safe Browsing Enhanced protection and set it to No protection (not recommended) here: chrome://settings/security?search=cookies, but iframe.js is still being loaded in mobile mode.

I am using fire...@9.0.0-beta.8 library with version 9 modular (not compat) code snippets here: https://firebase.google.com/docs/web/modular-upgrade.

Any idea or clue about getting rid of this huge iframe.js file would be appreciated. Even though the library is BETA, everything else works as expected with tree-shaking that considerably reduced client side package size.

You can test with Lighthouse on my personal Website here:
https://guydumais.digital

Thanks in advance, see You!

Reply all
Reply to author
Forward
0 new messages