Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Easy Lazy Loader

Mô tả

Lazy load images, videos, iframes and audios to improve page load times. Uses jQuery.sonar to only load an element when it’s visible in the viewport.

Easy Lazy Loader is the most fully featured, incredibly easy to set up lazy load plugin for WordPress. Use the plugins admin settings to easily define what elements are lazy loaded and when they become visible in the users browser.

You can also lazy load other images, iframes, videos and audios in your theme, by using a simple filter.

Non-javascript visitors gets the original element in noscript.

Compatible with the RICG Responsive Images plugin for responsive images.

IMAGE LAZY LOAD

Images are the number one element that slows page load and increases bandwidth use. Easy Lazy Loader works with the responsive images feature introduced in WordPress 4.4.

VIDEO LAZY LOAD

Easy Lazy Loader supports all WordPress video Embeds including Youtube, Vimeo and HTML5 video – for a full list see the WordPress Codex Embeds list. The WordPress embed method of copying and pasting the video url into posts and pages content area is fully supported.

AUDIO LAZY LOAD

Easy Lazy Loader supports all WordPress audio Embeds including SoundCloud, Spotify and HTML5 audio – for a full list see the WordPress Codex Embeds list. The WordPress embed method of copying and pasting the audio url into posts and pages content area is fully supported.

iFRAME LAZY LOAD

Easy Lazy Loader has built in support for content that is added by iframe from any source in content and widgets –examples

  • WordPress embedded media
  • Facebook Like boxes with profiles, Like buttons, Recommend
  • Google+ Profile
  • Google Maps

PLACEHOLDERS

Several strategies to fill the area of an image before it loads.

  • Keeping the space empty for the image: In a world of responsive design, this prevents content from jumping around. Those layout changes are bad from a user’s experience point of view, but also for performance. The browser is forced to do layout re calculations every time it fetches the dimensions of an image, leaving space for it.
  • Placeholder: Imagine that we are displaying a user’s profile image. We might want to display a silhouette in the background. This is shown while the main image is loaded, but also when that request failed or when the user didn’t set any profile picture at all. These images are usually vector-based, and due to their small size are a good candidate to be inlined.
  • Solid colour: Take a colour from the image and use it as the background colour for the placeholder. This can be the dominant colour, the most vibrant… The idea is that it is based on the image you are loading and should help making the transition between no image to image loaded smoother.
  • Blurry image: Also called blur-up technique. You render a tiny version of the image and then transition to the full one. The initial image is tiny both in pixels and kBs. To remove artifacts the image is scaled up and blurred.

PLUGIN COMPATIBILITY

  • Work with any WordPress theme that follows the WordPress Theme Codex
  • Fully compatible with WPTouch plugin
  • Fully compatible with MobilePress plugin
  • Fully compatible with WP-Print plugin
  • Fully compatible with Opera Mini browser
  • Will not conflict with any plugin that has lazy load built in
  • Plugin Developers Easy Lazy Loader filter allows them to let lazy load apply to their plugin
  • Tested 100% compatible with WP Super Cache and W3 Total Cache plugins
  • Tested 100% compatible with Amazon Cloudfront
  • Fully compatible with CDN architecture.

FEATURES

  • Lazy load images, iframes, videos, and audios.
  • Custom image placeholder.
  • Low-res preview image placeholder.
  • Color preview placeholder.
  • Skip classes to ignore some elements by class name.
  • Full support of jQueryMobile framework
  • WordPress Multi site ready.
  • Backend support for RTL display.
  • Translation ready

Localization

Cài đặt

  1. Download and unzip plugin
  2. Upload the ‘easy-lazy-loader’ folder to the ‘/wp-content/plugins/’ directory,
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

For detailed documentation on how you can configure these options please visit the Easy Lazy Loader plugin page

Hỏi đáp

Whoa, this plugin is using JavaScript. What about visitors without JS?

No worries. They get the original element in a noscript element. No Lazy Loading for them, though.

I’m using a CDN. Will this plugin interfere?

Lazy loading works just fine. The images will still load from your CDN.

How do I change the placeholder image

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

How do I lazy load other images in my theme?

If you have images output in custom templates or want to lazy load other images in your theme, you may pass the HTML through a filter:

<?php
$html = '<img src="myimage.jpg" alt="">';
$html = apply_filters( 'easy_lazy_loader_html', $html );
echo $html;
?>

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

Đánh giá

25 Tháng Ba, 2018
I have tried many lazy load plugins, easy lazy load seems to work really well.
Đọc tất cả 5 đánh giá

Người đóng góp & Lập trình viên

“Easy Lazy Loader” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Easy Lazy Loader” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Easy Lazy Loader” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

1.1.3

  • Optimized: creating placeholder image.

1.1.2

  • Fixed: some bugs and stability improvements.

1.1.1

  • Optimized: attachment identifier, now identify images from their URL better.

1.1.0

  • Optimized: attachment identifier, now identify images from their URL.
  • Optimized: placeholders to preserve their ratio as possible.
  • Fixed: some bugs and stability improvements.

1.0.0

  • Initial working version