I keep getting this error in the browser console. A few seconds later another error shows up, Uncaught Document body has not initialized. Wait to initialize Firebase until after the document is ready
, and keeps repeating every few seconds.
I dropped the firebase hosted library and config object just before the close of the </body>
exactly as indicated.
The HTML file is hosted on firebase.
Any idea what I am doing wrong?
UPDATE: I've narrowed it down to Material Design Lite interaction. The MDL templates take Firebase fine but my MDL page throws these errors. I've validated the HTML with the W3org validator, ...still troubleshooting.
<script src="https://www.gstatic.com/firebasejs/live/3.0/firebase.js"></script>
<script>
// Initialize Firebase - the BLAH BLAH is not really there
var config = {
apiKey: "AIzaSyDBLAH_BLAH_BLAHdtr3kp_9k",
authDomain: "fir-3-BLAH-BLAH-5c.firebaseapp.com",
databaseURL: "https://fiBLAH-BLAH-BLAH-18f5c.firebaseio.com",
storageBucket: "fir-3AND-MORE-BLAH5c.appspot.com",
};
firebase.initializeApp(config);
</script>