kollapsminoriteten/wp-content/plugins/jetpack/modules/lazy-images.php

31 lines
955 B
PHP
Raw Normal View History

2019-11-15 23:26:29 +01:00
<?php
/**
2023-12-07 09:44:11 +01:00
* Deprecated since version 12.8.0.
2022-04-02 10:26:41 +02:00
*
2023-12-07 09:44:11 +01:00
* Jetpacks Lazy Loading feature was first introduced in 2018.
* At the time, few other tools offered such functionality.
* It offered a much needed performance boost to WordPress sites,
* especially those with a large number of images.
*
* A couple of years later, a new lazy loading web standard was introduced,
* and WordPress itself started supporting this standard.
* Today, modern browsers all support lazy loading,
* and WordPress itself comes with built-in lazy loading functionality for images and videos.
*
* Considering this positive change, Jetpacks Lazy Loading feature is no longer necessary.
*
* @deprecated
2022-04-02 10:26:41 +02:00
* @package automattic/jetpack
2019-11-15 23:26:29 +01:00
*/
/**
2023-12-07 09:44:11 +01:00
* Deactivate module if it is still active.
2019-11-15 23:26:29 +01:00
*
2023-12-07 09:44:11 +01:00
* @since 12.8
2019-11-15 23:26:29 +01:00
*/
2023-12-07 09:44:11 +01:00
if ( Jetpack::is_module_active( 'lazy-images' ) ) {
Jetpack::deactivate_module( 'lazy-images' );
}
2019-11-15 23:26:29 +01:00
2023-12-07 09:44:11 +01:00
_deprecated_file( basename( __FILE__ ), 'jetpack-12.8' );