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

You can set the width and height attribute (HTML attribute, not CSS property) today.

Recent Chrome and Firefox use that to determine aspect ratio for jank-free loading.




For images and iframes, but I don't think that works for any element. In any case, hardcoding that kind of information in the HTML is not ideal.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: