=== Lazy Loading Responsive Images === Contributors: FlorianBrinkmann, MarcDK Tags: lazysizes, lazy loading, performance, images Requires at least: 4.5 Tested up to: 4.9 Stable tag: 3.1.13 Requires PHP: 5.3 == Description == Lazy loading images plugin that works with the responsive images feature introduced in WordPress 4.4. Based on lazysizes.js. Lazy loads: * Images inserted in posts, pages, Custom Post Types, … * Post thumbnails. The plugin adds a `noscript` element as fallback for disabled JavaScript. The plugin does not lazy load CSS background images. It also does not work for images that are added using `wp_get_attachment_image()`, because there cannot be a `noscript` fallback be added. You can disable lazy loading for specific image classes by adding them in the customizer (*Appearance* › *Customize* › *Lazy loading options*). Or use the data-no-lazyload attribute. == Installation == * Install plugin * Activate it == Changelog == = 3.1.13 – 08.11.2017 = **Changed** * Updated lazysizes to 4.0.1. * Updated »Tested up to« version to 4.9 in readme. = 3.1.12 – 22.09.2017 = **Fixed** * Added back the support for `data-no-lazyload` attr to disable lazy loading for specific images (was removed in 3.1.0 without keeping backwards compatibility in mind, sorry). = 3.1.11 – 19.09.2017 = **Changed** * Added details to the readme, what images are lazy loaded. **Fixed** * Now also adds a `noscript` element for gallery images. **Removed** * No lazy loading for images that are added via `wp_get_attachment_image()`, because for those images cannot be added a `noscript` fallback. = 3.1.10 – 17.09.2017 = **Fixed** * is_admin_request() check does not work for subdirectory installs. = 3.1.9 – 25.08.2017 = **Fixed** * Product image appears twice in WooCommerce cart. = 3.1.8 – 10.08.2017 = **Fixed** * Bump »Requires at least« to 4.5 because using wp_add_inline_script() since a few versions. = 3.1.7 – 10.08.2017 = **Fixed** * Use saveHTMLExact() method from SmartDomDocument to prevent doctype, html and body element to be added to the content. = 3.1.6 – 07.08.2017 = **Fixed** * Disable lazy loading for AMP pages which are generated by the »AMP« plugin by Automattic. = 3.1.5 – 20.07.2017 = **Fixed** * Further issues with PHP 5.3. * Issue with lazy loaded post thumbnail in the backend. = 3.1.4 – 14.07.2017 = **Fixed** * Replaced [] array syntax with traditional one, so it works with PHP 5.3 again. = 3.1.3 – 07.07.2017 = **Fixed** * Wrong check for js class, which causes hidden images if nothing else added a js class… = 3.1.2 = **Fixed** * Capital P for one »WordPress« in readme and one in plugin description. = 3.1.1 = **Changed** * Added option to disable lazy loading for specific classes to readme. **Fixed** * Correct text domain. = 3.1.0 = **Added** * Customizer option to specify image class names to disable lazy loading for those. **Changed** * Using semver. * Make it work with AJAX requests (thanks to zitrusblau). * Using classes and namespaces. * Using SmartDomDocument class. * Updated plugin URL. * Doc improvements. = 3.0 = * Updated lazysizes to 3.0.0 (Thanks FlorianBrinkmann) * Plugin version reflects version of lazysizes. = 1.0.9 = * Allow opting out of lazy load with "data-no-lazyload" attribute (Thanx wheresrhys) = 1.0.8 = * Bugfix for missing images if javascript is disabled. = 1.0.7 = * Added a check to prevent the plugin being applied multiple times on the same image. (Thanx to saxonycreative) = 1.0.6 = * added missing src attribute. Older browsers like the PS4 browser now work again. = 1.0.5 = * now prevents lazy loading in atom feeds and the WordPress backend. = 1.0.4 = * Changed description to reflect the compatibility with WordPress 4.4 core responsive images. * Removed skipping of the first image in the post. * Adds css class "js" to body tag for better compatibility. = 1.0.3 = * fixed path to js and css. = 1.0.2 = * typo in WordPress usernames.