GoogleChromeLabs / wp-native-lazyload

WordPress plugin to lazy-load media using the native browser feature.
https://wordpress.org/plugins/native-lazyload/
Apache License 2.0
51 stars 13 forks source link

Improve compatibility with other lazyload mechanisms / no JavaScript #4

Closed felixarntz closed 5 years ago

felixarntz commented 5 years ago

Issue Overview

It can happen that other lazy-loading implementations are active (despite not being recommended), and the .no-js .lazy[data-src] CSS rule might cause them to disappear.

Possible Solution

The plugin should make sure to only hide images that were transformed by itself, and only images that use the JavaScript fallback (since only then, the .no-js selector will be relevant, since the noscript version would be shown).

Related: https://wordpress.org/support/topic/images-not-visible-in-chrome-76/