{"id":107773,"date":"2019-08-13T18:42:20","date_gmt":"2019-08-13T18:42:20","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sarvarov-lazy-load\/"},"modified":"2020-05-23T15:27:30","modified_gmt":"2020-05-23T15:27:30","slug":"sarvarov-lazy-load","status":"publish","type":"plugin","link":"https:\/\/li.wordpress.org\/plugins\/sarvarov-lazy-load\/","author":15323996,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"trunk","tested":"5.4.19","requires":"4.0","requires_php":"5.6","requires_plugins":"","header_name":"SARVAROV Lazy Load","header_author":"Roman Sarvarov","header_description":"Lazy Load all your images, videos and iframes in just one click. Make your blog faster and look better with blurred LQIP and primary color placeholder.","assets_banners_color":"4da4fe","last_updated":"2020-05-23 15:27:30","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=LNVRV7LL39E2E&source=url","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/sarvarov-lazy-load\/","header_author_uri":"https:\/\/about.me\/sarvaroff","rating":5,"author_block_rating":0,"active_installs":0,"downloads":1535,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2145134","resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2145134","resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"2145134","resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"2145198","resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"2139061","resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"A small demonstration of what can be done.","2":"Settings page."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[163,20766,4884,1464,1466],"plugin_category":[50],"plugin_contributors":[144657],"plugin_business_model":[],"class_list":["post-107773","plugin","type-plugin","status-publish","hentry","plugin_tags-images","plugin_tags-lazy","plugin_tags-lazy-load","plugin_tags-lazy-loading","plugin_tags-lazyload","plugin_category-media","plugin_contributors-rom4i","plugin_committers-rom4i","plugin_support_reps-rom4i"],"banners":{"banner":"https:\/\/ps.w.org\/sarvarov-lazy-load\/assets\/banner-772x250.png?rev=2145134","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sarvarov-lazy-load\/assets\/icon-128x128.png?rev=2145134","icon_2x":"https:\/\/ps.w.org\/sarvarov-lazy-load\/assets\/icon-256x256.png?rev=2145134","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/sarvarov-lazy-load\/assets\/screenshot-1.png?rev=2145198","caption":"A small demonstration of what can be done."},{"src":"https:\/\/ps.w.org\/sarvarov-lazy-load\/assets\/screenshot-2.png?rev=2139061","caption":"Settings page."}],"raw_content":"<!--section=description-->\n<p>This plugin is the best way to make your images, iframes &amp; videos lazy. Just activate the plugin and lazy loading will work automatically. It's very simple, just try it!<\/p>\n\n<h3>THIS PLUGIN WILL MAKE YOUR SITE FASTER<\/h3>\n\n<p>All your media content will be loaded only when it's in the browser viewport. Also you can hide loading process from visitors at all: the lazy elements can be loaded invisibly before the user reaches it.<\/p>\n\n<h3>THIS PLUGIN WILL MAKE YOUR SITE LOOK BETTER<\/h3>\n\n<p>In just one click your can enable blurred LQIP (inspired by <a href=\"https:\/\/medium.com\/\">Medium<\/a>) and average color placeholder. Both of them look very modern &amp; interesting.<\/p>\n\n<h4>Main features<\/h4>\n\n<ul>\n<li>Speed up your blog, improve its PageSpeed Insights score<\/li>\n<li>Change style of placeholder, animation, transition etc.<\/li>\n<li>Make placeholder color based of the average color<\/li>\n<li>LQIP technology (Low Quality Image Placeholders)<\/li>\n<li><code>&lt;noscript&gt;<\/code> for visitors who don't have a JavaScript enabled<\/li>\n<li>Using the <a href=\"https:\/\/github.com\/aFarkas\/lazysizes\">Lazysizes<\/a> library and a lot of hooks give the possibility for customization to make the result the way you want<\/li>\n<li>High-quality code<\/li>\n<li>SEO friendly<\/li>\n<li>Mobile friendly<\/li>\n<li>Low server load (due to caching)<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the complete <code>sarvarov-lazy-load<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>You can configure the plugin by clicking on the 'Lazy Load' link in the 'Settings' menu.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt><h3>Will that plugin work on any template?<\/h3><\/dt>\n<dd><p>I hope so, but might be not. I originally made this plugin for myself and I tested it only on latest WordPress release on the default Twenty Fifteen theme. If you have compatibility issues with my plugin and your theme - just write me and I will try to fix it on next update.<\/p><\/dd>\n<dt><h3>Why isn't LQIP technologue working?<\/h3><\/dt>\n<dd><p>LQIP (Low Quality Image Placeholders) is working only on newly uploaded images (.jpg &amp; .jpeg). If you want to make it work with existing images, you need to regenerate <code>lqip<\/code> image size using a third-party plugin like <a href=\"https:\/\/ru.wordpress.org\/plugins\/regenerate-thumbnails\/\">Regenerate Thumbnails<\/a>.<\/p><\/dd>\n<dt><h3>How to make lazy custom images\/iframes?<\/h3><\/dt>\n<dd><p>You can create a custom function like this:<\/p>\n\n<pre><code>function my_lazy_process( $content = '', $params = array() ) {\n\n    if( class_exists( 'SARVAROV_Lazy_Load' ) ) {\n        return apply_filters( 'lazy_process', $content, $params );\n    }\n\n    return $content;\n}\n<\/code><\/pre><\/dd>\n<dt><h3>Will this plugin affect SEO?<\/h3><\/dt>\n<dd><p>Definitely Yes, in a positive way. The pages of your site will load faster, which positively affects the indexing of your site by search engine robots. The plugin has no effect on image indexing: search engines see them, don't worry!<\/p><\/dd>\n<dt><h3>How to add Schema.org vocabulary?<\/h3><\/dt>\n<dd><p>For example:<\/p>\n\n<pre><code>add_filter( 'sarvarov_lazy_load_image_container_atts', function( $atts ) {\n    $new_atts = array(\n        'itemprop' =&gt; array(\n            'value' =&gt; 'image'\n        ), \n        'itemscope' =&gt; array(\n            'value' =&gt; 'itemscope'\n        ), \n        'itemtype' =&gt; array(\n            'value' =&gt; 'http:\/\/schema.org\/ImageObject'\n        )\n    );\n\n    $atts = array_merge(\n        $atts,\n        $new_atts\n    );\n\n    return $atts;\n}, 10, 1 );\n\nadd_filter( 'sarvarov_lazy_load_image_container', function( $content = '', $img_width, $img_height, $atts ) {\n    if( $img_width &amp;&amp; $img_height ) {\n        $content .= sprintf( '&lt;meta itemprop=\"width\" content=\"%1$d\" \/&gt;&lt;meta itemprop=\"height\" content=\"%2$d\" \/&gt;', $img_width, $img_height );\n    }\n\n    return $content;\n}, 10, 4 );\n<\/code><\/pre><\/dd>\n<dt><h3>I still have a question<\/h3><\/dt>\n<dd><p>I can help with solving your problem on <a href=\"https:\/\/wordpress.org\/support\/plugin\/sarvarov-lazy-load\/\">our forum<\/a>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Post thumbnail fix<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<ul>\n<li>WordPress 5.4.x support<\/li>\n<li>Post thumbnail fix<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<ul>\n<li>Adds <code>loading=\"lazy\"<\/code> to images &amp; iframes inside <code>&lt;noscript&gt;<\/code><\/li>\n<li>General performance improvements<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<ul>\n<li>Use cURL if host has <code>allow_url_fopen<\/code> set to false<\/li>\n<li>Added Russian translation.<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<ul>\n<li>New option: <code>Completely disable placeholders<\/code><\/li>\n<li>General performance improvements and bug fixes<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Posts with no blocks support<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Critical cache bug fix<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>General performance improvements<\/li>\n<li>Better cache method<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Cache error fix<\/li>\n<li>Global stability fix<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>PHP error fix<\/li>\n<li>Minify public CSS &amp; JavaScript files<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Lazy Load all your images, videos &amp; iframes with blurred LQIP and average color placeholder. Inspired by Medium.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/107773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=107773"}],"author":[{"embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rom4i"}],"wp:attachment":[{"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=107773"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=107773"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=107773"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=107773"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=107773"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/li.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=107773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}