DEV Community

Discussion on: 24 Lesser-Known HTML Attributes You May Want to Use βœ¨πŸ“š

Collapse
 
sh20raj profile image
Sh Raj

Instead :- Inputmode we can directly use it in type

As Onerror we can use all JS properties like onload, onclick, etc.

Cite is the thing I was searching this day.
loading lazy was the thing I noticed in many websites but not known to it.
Very Helpful πŸš€πŸ’―

Collapse
 
madza profile image
Madza

Thanks so much for the feedback πŸ™β€

Collapse
 
thesanjeevsharma profile image
Sanjeev Sharma

the lazy loading attribute only works in chrome I think. so not as good as you think.

for true lazy loading, you'll have to implement your own solution using IntersectionObserver.

also, read about progressive image loading.

Collapse
 
madza profile image
Madza

Thanks for the input πŸ™β€