Why Firebase is so slow?

6,406 views
Skip to first unread message

F. Zafer KAYIKÇILAR

unread,
Aug 17, 2016, 10:58:05 AM8/17/16
to Firebase Google Group
Hi. I hosted a simple -angular 2- project to firebase and it's loading time is -at least 10- seconds everytime. So i created an empty project with angular cli and uploaded it to firebase. There is nothing in project just default cli template. It's slow also. As example: https://kuleli-150.firebaseapp.com/

Is it about my country (Turkey) or Firebase i can't figure out. Any idea?

Kato Richardson

unread,
Aug 17, 2016, 2:17:03 PM8/17/16
to Firebase Google Group

It looks like most of the time is spent loading images. Also, some of the images are being returned with text/html as the content type rather than jpeg for some reason.

Inline image 1

If you think this is Firebase-related, I’d recommend that you simplify the app and create an mcve demonstrating this without all the extra interference.

You can turn on debug logging to see exactly how and when the various Firebase events transpire:

JS:  firebase.database().enableLogging(true);
iOS:  [FIRDatabase setLoggingEnabled:YES];
Android:  FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);

I hope that helps!

☼, Kato


On Wed, Aug 17, 2016 at 1:59 AM, F. Zafer KAYIKÇILAR <f.z...@gmail.com> wrote:
Hi. I hosted a simple -angular 2- project to firebase and it's loading time is -at least 10- seconds everytime. So i created an empty project with angular cli and uploaded it to firebase. There is nothing in project just default cli template. It's slow also. As example: https://kuleli-150.firebaseapp.com/

Is it about my country (Turkey) or Firebase i can't figure out. Any idea?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7feccd36-8797-4783-afd3-2ec8427e19e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Michael Bleigh

unread,
Aug 17, 2016, 2:44:32 PM8/17/16
to Firebase Google Group
The site is making 914 requests on page load -- that's a lot. It's loading in ~4.5s for me. Firebase Hosting currently doesn't support HTTP/2 (we're working on it), which means that you're going to be much better off consolidating assets into a bundled package.

As for geography, you can look at Fastly's network map to get an idea of where edge locations are.

On Wed, Aug 17, 2016 at 11:17 AM 'Kato Richardson' via Firebase Google Group <fireba...@googlegroups.com> wrote:

It looks like most of the time is spent loading images. Also, some of the images are being returned with text/html as the content type rather than jpeg for some reason.

Inline image 1

If you think this is Firebase-related, I’d recommend that you simplify the app and create an mcve demonstrating this without all the extra interference.

You can turn on debug logging to see exactly how and when the various Firebase events transpire:

JS:  firebase.database().enableLogging(true);
iOS:  [FIRDatabase setLoggingEnabled:YES];
Android:  FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);

I hope that helps!

☼, Kato

On Wed, Aug 17, 2016 at 1:59 AM, F. Zafer KAYIKÇILAR <f.z...@gmail.com> wrote:
Hi. I hosted a simple -angular 2- project to firebase and it's loading time is -at least 10- seconds everytime. So i created an empty project with angular cli and uploaded it to firebase. There is nothing in project just default cli template. It's slow also. As example: https://kuleli-150.firebaseapp.com/

Is it about my country (Turkey) or Firebase i can't figure out. Any idea?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7feccd36-8797-4783-afd3-2ec8427e19e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Nicolas Garnier

unread,
Aug 18, 2016, 9:33:28 AM8/18/16
to fireba...@googlegroups.com
+1 to what has been said above. The main issue here is that there are too many resources to load. There seem to be hundreds of JS files and hundreds of image. Bundeling these together into larger files will improve things heavily.  A few things you could look into are (with random examples of build tools that can help you with that but really you should search for what best fits into your build tooling pipeline) :


As for the hundreds of image that are loading, maybe you should consider not loading the entire list of names/photos but instead having some type of infinite scrolling.

Cheers!

--
Nicolas Garnier
Developer Programs Engineer
Google Developer Platforms Engineering
Google Switzerland GmbH.
Brandschenkestrasse 110, 8002 Zurich, Switzerland
Identifikationsnummer: CH-020.4.028.116-1

The above terms reflect a potential business arrangement, are provided solely as a basis for further discussion, and are not intended to be and do not constitute a legally binding obligation. No legally binding obligations will be created, implied, or inferred until an agreement in final form is executed in writing by all parties involved.

This email may be confidential or privileged. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it went to the wrong person. Thanks

--

“When I get sad, I stop being sad and be awesome instead”

On Wed, Aug 17, 2016 at 8:44 PM, 'Michael Bleigh' via Firebase Google Group <fireba...@googlegroups.com> wrote:
The site is making 914 requests on page load -- that's a lot. It's loading in ~4.5s for me. Firebase Hosting currently doesn't support HTTP/2 (we're working on it), which means that you're going to be much better off consolidating assets into a bundled package.

As for geography, you can look at Fastly's network map to get an idea of where edge locations are.
On Wed, Aug 17, 2016 at 11:17 AM 'Kato Richardson' via Firebase Google Group <firebase-talk@googlegroups.com> wrote:

It looks like most of the time is spent loading images. Also, some of the images are being returned with text/html as the content type rather than jpeg for some reason.

Inline image 1

If you think this is Firebase-related, I’d recommend that you simplify the app and create an mcve demonstrating this without all the extra interference.

You can turn on debug logging to see exactly how and when the various Firebase events transpire:

JS:  firebase.database().enableLogging(true);
iOS:  [FIRDatabase setLoggingEnabled:YES];
Android:  FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);

I hope that helps!

☼, Kato

On Wed, Aug 17, 2016 at 1:59 AM, F. Zafer KAYIKÇILAR <f.z...@gmail.com> wrote:
Hi. I hosted a simple -angular 2- project to firebase and it's loading time is -at least 10- seconds everytime. So i created an empty project with angular cli and uploaded it to firebase. There is nothing in project just default cli template. It's slow also. As example: https://kuleli-150.firebaseapp.com/

Is it about my country (Turkey) or Firebase i can't figure out. Any idea?

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/7feccd36-8797-4783-afd3-2ec8427e19e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

F. Zafer KAYIKÇILAR

unread,
Aug 18, 2016, 10:31:29 AM8/18/16
to Firebase Google Group
But i have another project that has nothing in it and it's still slow. Just default cli project: https://kuleli-org.firebaseapp.com/

17 Ağustos 2016 Çarşamba 21:44:32 UTC+3 tarihinde Michael Bleigh yazdı:

Alex Memering

unread,
Aug 18, 2016, 11:41:01 AM8/18/16
to fireba...@googlegroups.com
This also seems to have the same problem of having a ton of different JS files that are all fairly small (<2KB).  it appears that most of them are coming from /vendor/@angular which makes sense if you're making an Angular2 app.  As the others have said you would probably see dramatic improvements in loading time if you bundled all of these into a single JS file instead of all of the individual ones, as most of the time is spent stalled waiting for threads to free up from downloading other files.

F. Zafer KAYIKÇILAR

unread,
Aug 19, 2016, 11:03:28 AM8/19/16
to Firebase Google Group
At least i understood it's about Angular (packages) and Me (photos) not Firebase. Thank you all.
Reply all
Reply to author
Forward
0 new messages