Ideas

Give us your best ideas!

Accelerator should use the loading attribute on images where applicable

Lazy loading is now supported directly by the browser itself by adding the loading attribute to the image. The default Accelerator should implement this wherever applicable (product listings for example) to have a minimum implementation of lazy loading. If possible, add some simple logic for when to add it to blocks automatically.


https://web.dev/browser-level-image-lazy-loading/
Polyfill exists: https://github.com/mfranzke/loading-attribute-polyfill

  • Nils Nyman
  • May 27 2021
  • Reviewed
  • Attach files