Title: Lazy Load XT
Author: dbhynds
Published: <strong>2015 年 2 月 13 日</strong>
Last modified: 2016 年 2 月 22 日

---

搜索插件

![](https://ps.w.org/lazy-load-xt/assets/banner-772x250.png?rev=1094660)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/lazy-load-xt/assets/icon-256x256.png?rev=1094664)

# Lazy Load XT

 作者：[dbhynds](https://profiles.wordpress.org/dbhynds/)

[下载](https://downloads.wordpress.org/plugin/lazy-load-xt.0.5.3.zip)

 * [详情](https://cn.wordpress.org/plugins/lazy-load-xt/#description)
 * [评价](https://cn.wordpress.org/plugins/lazy-load-xt/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/lazy-load-xt/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/lazy-load-xt/#developers)

 [支持](https://wordpress.org/support/plugin/lazy-load-xt/)

## 描述

Lazy load images, YouTube and Vimeo videos, and iframes using [Lazy Load XT](https://github.com/ressio/lazy-load-xt).

Lazy Load XT is the fastest, lightest, fully customizable lazy load plugin in the
WordPress Plugin Directory.

This plugin works by loading the Lazy Load XT script and replacing the `src` attributes
with `data-src` when the content of a post or page is loaded on the front end of
a WordPress site.

## 安装

 1. Install and activate the plugin through the ‘Plugins’ menu in WordPress

或者

 1. Download and unzip Lazy Load XT.
 2. Upload the `lazy-load-xt` folder to the `/wp-content/plugins/` directory
 3. 通过WordPress的的“Plugins”菜单激活插件

## 常见问题

  Why aren’t my images lazy loading?

Lazy Load XT filters images added to the page using `the_content`, `post_thumbnail_html`,`
widget_text` and `get_avatar`. If your images are added using another function (`
wp_get_attachment_image` for example), Lazy Load XT does not filter them. However,
as of v0.4, you can filter the HTML yourself by passing it to `get_lazyloadxt_html`.

For example, if a theme has:
 echo wp_get_attachment_image($id); Changing it to 
the following would lazy load the image: echo get_lazyloadxt_html( wp_get_attachment_image(
$id) );

## 评价

![](https://secure.gravatar.com/avatar/b186c460eedccfa741a85133aca7f39750297fae51ca1ad78bb7708ac87b048d?
s=60&d=retro&r=g)

### 󠀁[The best, But its mobile browser is very slow loading youtube video](https://wordpress.org/support/topic/the-best-but-its-mobile-browser-is-very-slow-loading-youtube-video/)󠁿

 [idanka](https://profiles.wordpress.org/idanka/) 2017 年 3 月 14 日

The best, But its (real) mobile browser is very slow loading youtube video. desktop
responsive browser mode, there is no slowdown.

![](https://secure.gravatar.com/avatar/e4592fca4743cd3b103bf7882afe79725c03be195d19b20166cb679fe5c7a6ae?
s=60&d=retro&r=g)

### 󠀁[The best for lazy loading](https://wordpress.org/support/topic/the-best-for-lazy-loading/)󠁿

 [justraveling](https://profiles.wordpress.org/justraveling/) 2017 年 1 月 8 日

We’ve been trying all the available plugins and this performed best together with
Rocket Lazy Load. It brings down significantly the page loading time and doesn’t
break the design. Just a bit too lazy on mobile.

![](https://secure.gravatar.com/avatar/4db33e3e2b535abf292789a354463b27c7f60278cba8168dbf12919ae05b49ba?
s=60&d=retro&r=g)

### 󠀁[Love it!](https://wordpress.org/support/topic/love-it-1507/)󠁿

 [AlgerieDeals](https://profiles.wordpress.org/algeriedeals/) 2017 年 1 月 4 日

Instant improvement on pingdom.com

![](https://secure.gravatar.com/avatar/a6328db5f24a3cb554d20f90d9e15c71aefa3cdfe2b59625ad0bde5add8dffe7?
s=60&d=retro&r=g)

### 󠀁[the best of lazy loads](https://wordpress.org/support/topic/the-best-of-lazy-loads/)󠁿

 [matteo raggi](https://profiles.wordpress.org/whichtransfers/) 2016 年 9 月 20 
日

I tryed others and htis is the best of the wp lazy loads, probably also outside 
WP 🙂

![](https://secure.gravatar.com/avatar/82e993899bb634c0845ffb134d3f582a313dcfd6321af5fda1dae0228b0da47c?
s=60&d=retro&r=g)

### 󠀁[Caused my site to be laggy and increased load times](https://wordpress.org/support/topic/caused-my-site-to-be-laggy-and-increased-load-times/)󠁿

 [advantagen](https://profiles.wordpress.org/advantagen/) 2016 年 9 月 3 日

This plugin made my site obviously laggy, and increased my load times by 2 seconds

![](https://secure.gravatar.com/avatar/946953b430f37dc3316347812c485571b853776c11dfbdd6476501230b87dfa1?
s=60&d=retro&r=g)

### 󠀁[Great, works with Retina 2x and Jetpack Carousel](https://wordpress.org/support/topic/great-works-with-retina-2x-and-jetpack-carousel/)󠁿

 [stevygee1987](https://profiles.wordpress.org/stevygee1987/) 2016 年 9 月 3 日

I just had to add get_lazyloadxt_html() to the gallery output, after that it worked
perfectly! Much better than the Lazy Load plugin, which stopped working with WP 
4.4!

 [ 阅读所有29条评价 ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/)

## 贡献者及开发者

「Lazy Load XT」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dbhynds ](https://profiles.wordpress.org/dbhynds/)

[帮助将「Lazy Load XT」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lazy-load-xt)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/lazy-load-xt/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/lazy-load-xt/)，或通过[RSS](https://plugins.trac.wordpress.org/log/lazy-load-xt/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/lazy-load-xt/)。

## 更新日志

#### 0.5.3

 * Fix multisite activation error

#### 0.5.2

 * Actually fixed the error for older versions of PHP

#### 0.5.1

 * Fixed error for older versions of PHP
 * Fixed incorrect script being loaded for background images

#### 0.5.0

 * Implemented srcset attribute for WP 4.4

#### 0.4.1

 * Tweaked regex for iframes
 * Fixed operators on settings class

#### 0.4

 * Added `get_lazyloadxt_html()` to let users pass HTML to be filtered
 * Disabled filtering HTML for RSS Feeds
 * Added support for content loaded via AJAX

#### 0.3.2

 * Error when using checked() and undefined index

#### 0.3.1

 * Fix typos and undefined indexes

#### 0.3

 * Parse HTML with regex instead of PHP’s DOMDocument
 * Fix UTF-8 problems
 * Enable script-based tagging
 * Lazy load gravatars
 * Enable loading scripts from CDN and in footer

#### 0.2

 * Lazy load HTML5 elements
 * Toggle and lazy load featured images, text widgets
 * Specify css classes to skip lazy loading
 * Improve settings, installation and upgrade
 * Fallback to 1×1 pixel transparent gif
 * HTML validation

#### 0.1

 * Load Lazy Load XT js using `wp_enqueue_scripts()`
 * Replace `src` with `data-src` in `the_content()`

## 额外信息

 *  版本 **0.5.3**
 *  最后更新：**10 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 3.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/lazy-load-xt/)
 * 标签
 * [iframe](https://cn.wordpress.org/plugins/tags/iframe/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [lazy load](https://cn.wordpress.org/plugins/tags/lazy-load/)[media](https://cn.wordpress.org/plugins/tags/media/)
 *  [高级视图](https://cn.wordpress.org/plugins/lazy-load-xt/advanced/)

## 评级

 4.8 星（最高 5 星）。

 *  [  25 条 5 星评价     ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/?filter=3)
 *  [  2 条 2 星评价     ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/lazy-load-xt/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lazy-load-xt/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/lazy-load-xt/reviews/)

## 贡献者

 *   [ dbhynds ](https://profiles.wordpress.org/dbhynds/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/lazy-load-xt/)