PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 12.7
Jetpack – WP Security, Backup, Speed, & Growth v12.7
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / lazy-images.php

lazy-images.php in Jetpack – WP Security, Backup, Speed, & Growth 12.7, at modules/lazy-images.php

35 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Module Name: Lazy Images
4 * Module Description: Improve your site's speed by only loading images visible on the screen. Modern browsers now support lazy loading, and WordPress itself bundles lazy loading features for images and videos. This feature will consequently be removed from Jetpack in November 2023.
5 * Sort Order: 24
6 * Recommendation Order: 14
7 * First Introduced: 5.6.0
8 * Requires Connection: No
9 * Auto Activate: No
10 * Module Tags: Appearance, Recommended
11 * Feature: Appearance
12 * Additional Search Queries: mobile, theme, fast images, fast image, image, lazy, lazy load, lazyload, images, lazy images, thumbnail, image lazy load, lazy loading, load, loading
13 *
14 * @package automattic/jetpack
15 */
16
17 /**
18 * The core of this module has been migrated to an standalone reusable package.
19 *
20 * @since 8.8
21 */
22
23 /*
24 * Initialize lazy images on the wp action so that conditional
25 * tags are safe to use.
26 *
27 * As an example, this is important if a theme wants to disable lazy images except
28 * on single posts, pages, or attachments by short-circuiting lazy images when
29 * is_singular() returns false.
30 *
31 * See: https://github.com/Automattic/jetpack/issues/8888
32 */
33
34 add_action( 'wp', array( 'Automattic\\Jetpack\\Jetpack_Lazy_Images', 'instance' ) );
35