plugin-icon

Native Lazyload

Charge en différé les médias à l’aide de la fonctionnalité native du navigateur.
Note
3/5
Version
1.0.2
Installations actives
6K
Mis à jour récemment
Dec 6, 2019
Native Lazyload

Lazy-loads media using the native browser feature. Learn more about the new loading attribute or view the WordPress core ticket where inclusion of a similar implementation in WordPress core itself is being discussed.

If the loading attribute is not supported by the browser, the plugin falls back to a JavaScript solution based on IntersectionObserver. For the case that JavaScript is disabled, but the loading attribute is supported by the browser, a noscript variant of the respective element will be added that also includes the loading attribute without any further changes.

« Native » signifie « rapide »

If you have found your way over here, you are probably aware of how crucial performance is for a website’s user experience and success. You might also know that lazy-loading is a key feature to improve said performance. However, the solutions for lazy-loading so far still added a bit of overhead themselves, since they relied on loading, parsing and running custom JavaScript logic, that may be more or less heavy on performance.

This plugin largely does away with this pattern. It relies on the new loading attribute, which makes lazy-loading a native browser functionality. The attribute is already supported by Chrome, and will be rolled out to other browsers over time. The solution being « native » means that it does not rely on custom JavaScript logic, and thus is more lightweight. And « more lightweight » means « faster ».

Enfin, il est important de garder à l’esprit que cette extension s’améliorera avec le temps, à mesure que de plus en plus de navigateurs utiliseront l’attribut loading.

Utilisation

Activez simplement l’extension et toutes vos images et iframes dans le contenu des publications seront chargées en différé.

Crédit

This plugin is partly based on logic from WP Rig as well as recommendations from web.dev and developers.google.com.

Gratuitsur le plan Business
En procédant à l’installation, vous acceptez les Conditions d’utilisation de WordPress.com ainsi que les Conditions de l’extension tierce.
Testé jusqu’à version
WordPress 5.3.20
Cette extension est disponible en téléchargement pour votre site .