phase2 / outline

Tooling infrastructure for modern web component development.
https://outline.phase2tech.com
MIT License
128 stars 27 forks source link

Add `loading="lazy"` for `<img>` by default? #319

Closed himerus closed 2 years ago

himerus commented 2 years ago

Can we add loading="lazy" for <img> by default? And give an option to omit it, for things like hero images (that get better LCP when not using lazy)

Originally posted by @shaal in https://github.com/phase2/outline/pull/318#pullrequestreview-975811348