このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Lazy Load

説明

Lazy load images to improve page load times. Uses jQuery.sonar to only load an image when it’s visible in the viewport.

This plugin is an amalgamation of code written by the WordPress.com VIP team at Automattic, the TechCrunch 2011 Redesign team, and Jake Goldman (10up LLC).

jQuery.sonar Dave Artz (AOL) さん作、を使用。

インストール

  1. プラグインを WordPress のプラグインディレクトリにアップロードします
  2. WordPress の「プラグイン」メニューからプラグインを有効化してください
  3. お楽しみ下さい !

FAQ

How do I change the placeholder image

add_filter( ‘lazyload_images_placeholder_image’, ‘my_custom_lazyload_placeholder_image’ );
function my_custom_lazyload_placeholder_image( $image ) {
return ‘http://url/to/image’;
}

How do I lazy load other images in my theme?

You can use the lazyload_images_add_placeholders helper function:

if ( function_exists( 'lazyload_images_add_placeholders' ) )
    $content = lazyload_images_add_placeholders( $content );

Or, you can add an attribute called “data-lazy-src” with the source of the image URL and set the actual image URL to a transparent 1×1 pixel.

You can also use output buffering, though this isn’t recommended:

if ( function_exists( 'lazyload_images_add_placeholders' ) )
    ob_start( 'lazyload_images_add_placeholders' );

This will lazy load all your images.

評価

2023年4月29日
Having this plugin installed on my WordPress pages for some time resulted in having them all malware-infected which happened literally yesterday. The plugin had its name changed to some 'WordPress CMS module' and its directory name was changed as well.
2019年11月18日
It produces random grayed out pictures within Jupiter theme image galleries. The galleries work like charm after disabling this bundled plugin.
2019年2月10日
Seems to work for some images but not for all, with no real explanation about why. There are no configuration options so I couldn't find a way to fine-tune it.
2018年11月1日
The idea might be good but its messing up the entire websites, mostly on different sliders.
53件のレビューをすべて表示

貢献者と開発者

Lazy Load はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Lazy Load” は7ロケールに翻訳されています。 翻訳者のみなさん、翻訳へのご協力ありがとうございます。

“Lazy Load” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

0.6.1

0.6

  • Filter to control when lazy loading is enabled

0.5

  • Fix lazyload_images_add_placeholders by adding missing return, props Kevin Smith
  • Lazy load avatars, props i8ramin
  • Don’t lazy load images in the Dashboard
  • Better compatibility with Jetpack Carousel

0.4

  • New helper function to lazy load non-post content
  • Prevent circular lazy-loading

0.3

  • Make LazyLoad a static class so that it’s easier to change its hooks
  • Hook in at a higher priority for content filters

0.2

  • Adds noscript tags to allow the image to show up in no-js contexts (including crawlers), props smub
  • Lazy Load post thumbnails, props ivancamilov

0.1

  • Initial working version