I'm trying to figure out exactly when Firebase loads data to the client versus employing a "lazy load" approach (only downloading data when necessary). I have images saved in Firebase as base64 and there are two options:
// Using standard Firebase
var imagesRef = Ref.child('images');
// Utilizing Angularfire
var imagesObj = $firebaseObject(Ref.child('images'));
Ref
is simply a reference to my Firebase URL.
In Angularfire, there is $loaded()
which gives me the impression that all the data is loaded AT ONCE and becomes available immediately when you call $firebaseObject()
. Is this accurate?
Regarding using child()
, I haven't come across any load()
event to monitor based on the documentation. But does it transfer all data from the server to the client?
If I have 500MB of images, I definitely want to avoid an all-at-once loading scenario.