Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

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

@jacobarriola

Description

@jacobarriola

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions