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

wp-lazy-load

描述

This plugin optimizes your page load performance using the jQuery Lazy
Load. The img src attributes in your posts are replaced with
placeholder tags. The plugin waits for the user to scroll to near
the image before it starts loading the image.

This improves your page speed as only images that are actually viewed by users
are loaded. And your servers will also perform better as they will need
to serve fewer images.

Credits

安装

  1. Click Plugins > Add New in the WordPress admin panel.
  2. Search for “wp-lazy-load” and install.

Customization

The threshold parameter controls the distance in pixels that the your
viewers need to be close to to trigger loading of images. Default is 200
pixels.

The plugin uses a transparent gif as the placeholder image by default.
This can be changed by adding a custom placeholder image to your current
themes wp-lazy-load subdirectory.

For eg:- if you add red.gif to {current_theme}/wp-lazy-load/red.gif
and then change the plugin settings to use red.gif.

Then the placeholder for your images will use this red.gif image
instead.

常见问题

  • Can I change the placeholder image?

Yes, see the customization section under Installation.

评价

此插件暂无评价。

贡献者及开发者

“wp-lazy-load” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“wp-lazy-load”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.3.2

  • Adds effectSpeed parameter to control the animation speed.
    • Default is 400 ms.

0.3.1

  • Upgrades to Arrow 1.8.0.

0.3.0

  • Upgrades to Arrow 1.6.0.
  • Migrates plugin setting page to a client-side jQuery based app.

0.2.0

  • First release on wordpress.org

0.1.0

  • Initial Release