calypsoify
5 years ago
carousel
5 years ago
comment-likes
7 years ago
comments
6 years ago
contact-form
5 years ago
custom-css
5 years ago
custom-post-types
5 years ago
geo-location
6 years ago
google-analytics
6 years ago
gravatar
5 years ago
infinite-scroll
5 years ago
lazy-images
5 years ago
likes
6 years ago
markdown
5 years ago
masterbar
5 years ago
memberships
6 years ago
photon
6 years ago
photon-cdn
5 years ago
plugin-search
7 years ago
post-by-email
6 years ago
protect
6 years ago
publicize
6 years ago
pwa
6 years ago
related-posts
5 years ago
scan
5 years ago
search
5 years ago
seo-tools
5 years ago
sharedaddy
5 years ago
shortcodes
5 years ago
simple-payments
6 years ago
site-icon
6 years ago
sitemaps
5 years ago
sso
6 years ago
subscriptions
6 years ago
theme-tools
5 years ago
tiled-gallery
5 years ago
verification-tools
6 years ago
videopress
6 years ago
widget-visibility
6 years ago
widgets
5 years ago
woocommerce-analytics
5 years ago
wordads
5 years ago
wpcom-block-editor
5 years ago
wpcom-tos
6 years ago
.eslintrc.js
6 years ago
after-the-deadline.php
7 years ago
carousel.php
7 years ago
comment-likes.php
6 years ago
comments.php
6 years ago
contact-form.php
7 years ago
copy-post.php
6 years ago
custom-content-types.php
6 years ago
custom-css.php
7 years ago
enhanced-distribution.php
9 years ago
geo-location.php
7 years ago
google-analytics.php
8 years ago
gravatar-hovercards.php
5 years ago
infinite-scroll.php
6 years ago
json-api.php
9 years ago
latex.php
6 years ago
lazy-images.php
6 years ago
likes.php
6 years ago
markdown.php
9 years ago
masterbar.php
7 years ago
minileven.php
6 years ago
mobile-push.php
10 years ago
module-extras.php
6 years ago
module-headings.php
5 years ago
module-info.php
6 years ago
monitor.php
6 years ago
notes.php
6 years ago
photon-cdn.php
6 years ago
photon.php
6 years ago
plugin-search.php
5 years ago
post-by-email.php
6 years ago
protect.php
6 years ago
publicize.php
6 years ago
pwa.php
6 years ago
related-posts.php
7 years ago
search.php
6 years ago
seo-tools.php
5 years ago
sharedaddy.php
6 years ago
shortcodes.php
6 years ago
shortlinks.php
5 years ago
sitemaps.php
5 years ago
sso.php
5 years ago
stats.php
6 years ago
subscriptions.php
5 years ago
theme-tools.php
6 years ago
tiled-gallery.php
7 years ago
vaultpress.php
7 years ago
verification-tools.php
7 years ago
videopress.php
7 years ago
widget-visibility.php
7 years ago
widgets.php
7 years ago
woocommerce-analytics.php
5 years ago
wordads.php
5 years ago
wpgroho.js
6 years ago
lazy-images.php
40 lines
| 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 | * This module relies heavily upon the Lazy Load plugin which was worked on by |
| 18 | * Mohammad Jangda (batmoo), the WordPress.com VIP team, the TechCrunch 2011 |
| 19 | * redesign team, and Jake Goldman of 10up LLC. |
| 20 | * |
| 21 | * The JavaScript has been updated to rely on InterSection observer instead of |
| 22 | * jQuery Sonar. Many thanks to Dean Hume (deanhume) and his example: |
| 23 | * https://github.com/deanhume/lazy-observer-load |
| 24 | */ |
| 25 | |
| 26 | require_once( JETPACK__PLUGIN_DIR . 'modules/lazy-images/lazy-images.php' ); |
| 27 | |
| 28 | /* |
| 29 | * Initialize lazy images on the wp action so that conditional |
| 30 | * tags are safe to use. |
| 31 | * |
| 32 | * As an example, this is important if a theme wants to disable lazy images except |
| 33 | * on single posts, pages, or attachments by short-circuiting lazy images when |
| 34 | * is_singular() returns false. |
| 35 | * |
| 36 | * See: https://github.com/Automattic/jetpack/issues/8888 |
| 37 | */ |
| 38 | |
| 39 | add_action( 'wp', array( 'Jetpack_Lazy_Images', 'instance' ) ); |
| 40 |