Firebaseui-web: [Perf] Optimize the size of the lib and make the library modular

Created on 24 Nov 2017  ·  6Comments  ·  Source: firebase/firebaseui-web

Could you optimize the size of the lib? We have limit ~ 50 KB per route on 3G mobile networks. :-/

Check out the video Measure Time to Interactive.

The Cost Of JavaScript is high.

p3 feature request

Most helpful comment

Any progress? Firebase SDK libs and UI lib are bad solution for PWA now. :-( Perf and libs size are critical for Lighthouse score.

All 6 comments

If you are using a subset of the supported providers, you can recompile with some js compiler that supports dead code removal. For example, if you are not using phone authentication, this would cut the size of the library significantly.
Currently, size optimization is not a top priority especially since we have many additional new and requested features to add to our library.

@bojeil-google @nicolasgarnier Could you make this library modular? Modul per provider?

Any progress? Firebase SDK libs and UI lib are bad solution for PWA now. :-( Perf and libs size are critical for Lighthouse score.

Would be great if firebaseUI could be modularized. I'm using it in many production apps (love it) but the size is a constant drawback, especially as I only use 2 or 3 providers.
In any case, keep up the good work 👍

There are ongoing discussions to modularize the core JS SDK. Once that materializes (it's quite an effort), we can look into FirebaseUI modularization.

That would be helpful

On Saturday, February 2, 2019, bojeil-google notifications@github.com
wrote:

There are ongoing discussions to modularize the core JS SDK
https://github.com/firebase/firebase-js-sdk/issues/332. Once that
materializes (it's quite an effort), we can look into FirebaseUI
modularization.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/firebase/firebaseui-web/issues/257#issuecomment-459922645,
or mute the thread
https://github.com/notifications/unsubscribe-auth/APv--ZdYS_2wH1bmediQ2o-zjh8DgfNdks5vJOyOgaJpZM4Qpnb9
.

Was this page helpful?
0 / 5 - 0 ratings