-
Notifications
You must be signed in to change notification settings - Fork 962
Closed
Labels
Description
Describe your environment
- Operating System version: macOS Sierra
- Firebase SDK version: 4.0.0
- Firebase Product: app
Describe the problem
firebase.js
is a really large file and while you can load the individual pieces of the SDK (firebase-app, firebase-database, firebase-auth, etc) you have to do so before calling firebase.initializeApp()
. This, for most use cases, means that developers load the entire firebase SDK before their app code which results in a lot of time blocking the main thread.
Steps to reproduce:
- Load firebase-app.js
- Initialize an app with
firebase.initializeApp()
- Load firebase-database.js
- Try and call
firebase.database()
- Observe error
Relevant Code:
amranidev, andrewda and bmcmahen