contentful / experience-builder

https://www.contentful.com/developers/docs/experiences/what-are-experiences/
MIT License
5 stars 1 forks source link

feat(components): add loading attribute to image component #577

Closed elylucas closed 3 weeks ago

elylucas commented 4 weeks ago

Purpose

Customers would like to add lazy loading to their images

Approach

Extends the ImageOptimization options to include a loading flag that can be set to 'lazy', 'eager', or undefined, which is configured via the UI. This option will set its value to the loading attribute on the option.

vercel[bot] commented 4 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
experience-builder-test-app ✅ Ready (Inspect) Visit Preview Apr 22, 2024 3:49pm