Skip to content
This repository was archived by the owner on Oct 19, 2022. It is now read-only.

Conversation

@mariusveltan
Copy link

Without this tweak, the plugin has not effect on images that have set the "srcset" attribute. When given a "srcset" attribute, the browser requests at initial page load the necessary image, according to the screen size.

By setting the "srcset" in a similar lazy manner, the images are loaded only upon entering the viewport.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants