DEV Community

Discussion on: How I brought loading time of a media from ~3s to ~100ms or less

Collapse
 
gillarohith profile image
Rohith Gilla

Sure I am afk right now
Will send it once I am back.
Just FYI these values are when we hard reload

If I use locally cached request you could easily notice that 😄 by checking the tab itself

I’ll post screenshots with explaining in sometime

Collapse
 
gillarohith profile image
Rohith Gilla

@pavelloz attaching the screenshots that you have asked.

FYI whenever you see the cached response the size transfered wouldn't be the original size

The timing tab of the request access using firebasestorage api
https://i.imgur.com/dxhQoy9.png

The timing tab of the request after the CDN implementation
https://i.imgur.com/aRkmiTU.png

I hope this answers your question :D

Thanks

Thread Thread
 
pavelloz profile image
Paweł Kowalski • Edited

Wow, the "before" TTFB is brutal. 2 seconds of TTFB for image is some kind of magic in 2021 :) Firebase did something amazing in there to achieve that.

BTW. I recommend using firefox for those kinds of tasks, chrome is clearly missing a lot of details. Example timings: dev-to-uploads.s3.amazonaws.com/up...

Thread Thread
 
gillarohith profile image
Rohith Gilla

Sure thanks for the suggestion

I am using Brave, any motivation to move to Firefox?
Seeming cool