Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(netlify-cms-core): add lazy property to images in Media Library #6613

Merged

Conversation

Takeno
Copy link
Contributor

@Takeno Takeno commented Dec 5, 2022

Summary

Currently when you open Media Library, all media insides are shown causing a lot of network requests even if you don't need them.
Using native image attribute lazy will optimize images outside the viewport and reducing unused network requests.

Test plan

There is not UI changes, just browser default behaviour and performance increased.

Checklist

  • I have read the contribution guidelines.
  • Code is formatted via running yarn format.
  • Tests are passing via running yarn test.
  • The status checks are successful (continuous integration). Those can be seen below.

@Takeno Takeno requested a review from a team December 5, 2022 09:55
@Takeno Takeno force-pushed the feat/lazy-images-media-library branch from 0e2c720 to 9e92167 Compare December 7, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants