| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Module Name: Lazy Images |
| 5 |
* Module Description: Speed up your site and create a smoother viewing experience by loading images as visitors scroll down the screen, instead of all at once. |
| 6 |
* Sort Order: 24 |
| 7 |
* Recommendation Order: 14 |
| 8 |
* First Introduced: 5.6.0 |
| 9 |
* Requires Connection: No |
| 10 |
* Auto Activate: No |
| 11 |
* Module Tags: Appearance, Recommended |
| 12 |
* Feature: Appearance |
| 13 |
* 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 |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* |
| 18 |
* @since 8.8 |
| 19 |
* |
| 20 |
* The core of this module has been migrated to an standalone reusable package. |
| 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 |
|