Hacker News new | past | comments | ask | show | jobs | submit login

I've personally experienced this at work before.

A non-technical person uploaded the image to the CMS, assuming it will be scaled down at some point after uploading. A web developer used the image from the CMS, assuming it was scaled down at some point before being exposed for the frontend to access it. In reality the image never got scaled down anywhere, and ended up on the frontend in its full 9 MB glory. This ended up happening with several images.

I (not a frontend dev) ended up finding it because I was writing a strongly-worded message to my team lead about the huge pile of unnecessary tracking/surveillance scripts being forced on frontend users, and I wanted to make the point that it was making the frontend slow and heavy. It turned out out that the tracking scripts were nothing compared to the huge images!

Apparently nobody else bothered to check this before me, and/or didn't stop for half a second to think about it when they saw "Total page size: 13 MB" in their browser devtools, and/or didn't actually attempt to do any investigation when they saw our shitty Lighthouse rating. The world is full of professionals in name and status, but not in attitude.




I am a one man shop running a news site and put my site through webpagetest every Monday morning. I find it crazy that big companies apparently don’t do this.


You're likely more dedicated than most. There is a certain level of ignorance that allows these people to continue in comfort and unfortunately its not fixable because they don't know and likely don't care.




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

Search: