Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Lazy Load XT

Apraksts

Lazy load images, YouTube and Vimeo videos, and iframes using 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.

Uzstādīšana

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

vai

  1. Download and unzip Lazy Load XT.
  2. Upload the lazy-load-xt folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

BUJ

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) );

Atsauksmes

8 janvāris, 2017
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.
Lasīt 29 atsauksmes

Autori un izstrādātāji

“Lazy Load XT” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Lazy Load XT” savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

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()