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

<img> tags use the loading="lazy" property which doesn't actually load the image until it's displayed. Everything else is just text, which is super tiny.

https://github.com/cadars/john-doe/blob/4f5a3eafecbdffa9d34f...



I didn't know about that attribute, thanks. I wonder if there's a way to make "lazy" its default value, instead of "eager"... I guess not without JS.

P. S. It seems that Safari isn't compatible with the attribute by default, but it can be enabled through its settings.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: