Assets (images) in Firebase Hosting


I’m implementing a web app in angular/ionic/firebase. I have an assets folder containing many icons and images (about 4 mb). Using firebase hosting, the whole folder is
downloaded every time a user connects to the site or only when a page containing a specific image is loaded? I would not like to have high data transfer costs due to the fact that all the images are always transferred


Ionic by default uses lazy load routing, so images are downloaded only when the page is showed.

If you want to make sure, it is very easy to check, only open devtools, go to "Network" panel, reload the page and there you have everything is loaded at the beginning.

Then, you can also open a page with some images and check in devtools that those images are downloaded at that moment.

I hope it helps 🙂

Answered By – Miguel

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published