Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> especially compared to images which can be multiple megabytes in size

Please don't put images of multi-megabytes size on web-pages. My boss put a 10-megabyte image on the homepage of one of our clients; he fancied himself a photographer, and he took the photo. It gave a 10s page-load time from a desktop PC. I offered to shrink it for him, which would have taken 2 minutes; he wasn't having it.

I don't think it was pride in his photo; I think the client wasn't paying their bills, and he wanted to punish them.

But please, shrink your images to fit on the screen of your most-capable target device. There's no need for super-hi-res posters on websites.



Adding...please use the img tag's sizes and srcset to maximize performance.

Please stop using desktop sized images across all viewports when using background images.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: