Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

are there differences in browser loading speeds for different Images extension (jpg, png)?

I have an image that I want to convert to png / jpg. The file size differences for each type is very small (photoshop save-for-web-and-devices optimized): 155 bytes for image.png 357 bytes for image.jpg

I don't care too much about the file type either, because there is no opacity.

Is there any difference in loading speeds for browsers between images types? say, for example, firefox prefers .png files because they're uncompressed so it loads faster (just a thought).

thanks

like image 245
Shahar Avatar asked Nov 03 '22 05:11

Shahar


1 Answers

The loading speed of an image depends on the size of the file and the connection speed of the user. When a site is loaded, a browser downloads a temporary copy of the page including images. You may not be able to tell the difference, but the JPG will take twice as long to load at 355 bytes. These files are so small that it really should not make a difference in the loading speed unless you had say 100 unique images on a single page.

like image 177
Michael Garrison Avatar answered Nov 11 '22 13:11

Michael Garrison