firebase / firebase/firebase-js-sdk

Firebase v9 loads a large iframe.js file but only on mobile

Open
#4,946 76 comments 94 reactions 0 assignees View on GitHub
api: auth feature request v9
Dominant language
TypeScript
Stars
5.1k
Forks
1k
Avg merge
2d 21h
Merged PRs (30d)
37

Description

### [REQUIRED] Describe your environment

* Operating System version: macOS v11.3
* Browser version: Chrome 90.0.4430.212
* Firebase SDK version: firebase@9.0.0-beta.2
* Firebase Product: auth

### [REQUIRED] Describe the problem

After upgrading from v8 to v9 a request for an iframe (`https://[projectname].firebaseapp.com/__/auth/iframe.js`) has started appearing on every page load, but only on mobile (via Chrome's simulated Device mode at least, and when Lighthouse is auditing the website).

An older Lighthouse report of our application, from before the upgrade to v9, did not mention this file at all so I can only assume it wasn't loaded back then.

This iframe file is big and seems unnecessary to our application since we never use any kind of iframing of Firebase functionality and the only auth login method we use is email login.

Is there a way to disable the loading of this iframe?

![image](https://user-images.githubusercontent.com/13007299/119844422-b4450d80-bf08-11eb-8e1d-da2a71062544.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.