June 6, 201016 yr Hi, What do you think should be the maximum file size for images used on a website to help load faster? Taking in mind there are various images you can use i.e. button images, background images, header images etc. What should be the maximum JPEG size to help retain close-to original image quality (i.e. a portfolio or background image) but also be able to load fast (i.e. within 5 seconds). 500kb.. 250kb.. less? Thanks!
June 6, 201016 yr I'd always recommend trying to keep images to as low a file size as possible. Every image is different and I'd suggest using your own discretion to establish the right balance between image compression and quality. I always aim to keep my max website load time under 3-4seconds, even when using heavy amounts of graphics (on a 6.04Mb line, global average is 6.6Mb). A recent study I read suggested users begin to become impatient after 4seconds, yet in another study the mean load time of top ranking Google sites was found to be 9seconds (so users may be used to waiting for upto 9seconds for pages to load, I wouldn't count on it though). I can't really say what file size to make your images, but 500kb is definitely too big. Here's a few ways you can keep file-size/page-load down: Tile and repeat and images. Use CSS sprites. Always define height & width of your images. Use image maps and hotspots. Use the save for web feature in Photoshop. If you don't have Photoshop, use an online image optimiser like: http://tools.dynamicdrive.com/imageoptimizer/ Always scale images down to the right size in an image editor, don't just make it smaller using CSS. Just play around with different combinations of the above to speed up page load time, and always try to find the perfect balance between image compression & quality. Hope that help
June 7, 201016 yr It depends on the type/content of the website as well. For a fairly simple site, I try & keep the basic site under 100-150k (sometimes only 30-50k) if possible, then content images on top of that. Of course, if a gallery is involved, then its up to you to decide. As mentioned above, CSS sprites help a lot when it comes to increasing the efficiency of multiple images...it doesn't just come down to file size, but the number of them as well! re: jpeg compression...I normally find that compressing at about 60% in photoshop is a good setting for most images....some you can go lower with & some may need higher - but not often.
June 8, 201016 yr It depends on the image size. For a good size image (500x500px), I'd shoot for under 100kb definitely. Basically, lower your jpg image quality setting to near the bottom, then raise it just to the point where the quality of the image becomes acceptable. ---- St Albans Web Design Web Design, Development and Email Marketing
Create an account or sign in to comment