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

> Unless I was doing something wrong

Probably this, that approach is very standardized now across the major browsers.

I worked at a web agency until last year, and led projects to inline image height/width values for 4 large companies. Huge reduction in CLS and permits you to lazyload without fear of layout shifts.

`aspect-ratio` hadn't landed in iOS Safari at that point, but you can do that instead now. Identical behavior.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: