DEV Community

Discussion on: How we decreased load time by 40% by removing just 1 file

Collapse
 
jsn1nj4 profile image
Elliot Derhay

As soon as you said "8 decently sized images", my immediate thought was "please, no. Not base64-encoded images in CSS..."

I have to wonder why someone would do that -- at those dimensions, I'm guessing they're photos?

Collapse
 
mladenstojanovic profile image
Mladen Stojanovic • Edited

I have no idea, it was 8 photos (4 different photos in 2 sizes) for a 500 page, which kinda makes sense, BUT, they were too big to be base 64 encoded, and they didn't create any sort of loading in chunks or whatever so it was loaded every time the site was entered, crazy!

Collapse
 
jsn1nj4 profile image
Elliot Derhay

Agreed. There needs to be a reasonable size limit and purpose decided on for doing that sort of thing.