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

Conditionally load lazysizes if browser doesn't support loading attribute #8

Open
jacobarriola opened this issue Aug 14, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@jacobarriola
Copy link
Contributor

WP 5.5 now ships with image lazy loading via the native loading attribute.

We should only load @lazysizes if a browser doesn't support this feature.

See: https://web.dev/native-lazy-loading/#what-if-i'm-already-using-a-third-party-library-or-a-script-to-lazy-load-images

@jacobarriola jacobarriola added the enhancement New feature or request label Aug 14, 2020
@jacobarriola jacobarriola self-assigned this Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant