{"id":553,"date":"2011-11-24T15:03:52","date_gmt":"2011-11-24T15:03:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lazy-load\/"},"modified":"2018-11-22T04:43:56","modified_gmt":"2018-11-22T04:43:56","slug":"lazy-load","status":"publish","type":"plugin","link":"https:\/\/mn.wordpress.org\/plugins\/lazy-load\/","author":5279457,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.6.1","stable_tag":"0.6.1","tested":"5.0.25","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"Lazy Load","header_author":"","header_description":"","assets_banners_color":"","last_updated":"2018-11-22 04:43:56","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":4,"author_block_rating":4.8571428571429,"active_installs":20000,"downloads":516643,"num_ratings":53,"support_threads":0,"support_threads_resolved":0,"author_block_count":6,"sections":["description","installation","faq","changelog"],"tags":{"0.1":{"tag":"0.1","author":"batmoo","date":"2011-11-24 15:31:00"},"0.2":{"tag":"0.2","author":"batmoo","date":"2012-01-17 14:45:03"},"0.3":{"tag":"0.3","author":"batmoo","date":"2012-01-26 22:32:40"},"0.4":{"tag":"0.4","author":"batmoo","date":"2012-07-04 17:56:53"},"0.5":{"tag":"0.5","author":"batmoo","date":"2012-09-04 03:31:18"},"0.6":{"tag":"0.6","author":"automattic","date":"2016-04-14 09:45:14"},"0.6.1":{"tag":"0.6.1","author":"automattic","date":"2018-11-22 04:43:22"}},"upgrade_notice":[],"ratings":{"1":9,"2":4,"3":2,"4":3,"5":35},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.4","0.5","0.6","0.6.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[37554,163,4884],"plugin_category":[50],"plugin_contributors":[77761,77494,77504,77760],"plugin_business_model":[],"class_list":["post-553","plugin","type-plugin","status-publish","hentry","plugin_tags-front-end-optimization","plugin_tags-images","plugin_tags-lazy-load","plugin_category-media","plugin_contributors-10up","plugin_contributors-automattic","plugin_contributors-batmoo","plugin_contributors-jakemgold","plugin_committers-automattic","plugin_committers-batmoo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lazy-load.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Lazy load images to improve page load times. Uses jQuery.sonar to only load an image when it's visible in the viewport.<\/p>\n\n<p>This plugin is an amalgamation of code written by the WordPress.com VIP team at Automattic, the TechCrunch 2011 Redesign team, and Jake Goldman (10up LLC).<\/p>\n\n<p>Uses <a href=\"http:\/\/www.artzstudio.com\/files\/jquery-boston-2010\/jquery.sonar\/\">jQuery.sonar<\/a> by Dave Artz (AOL).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin to your plugins directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20change%20the%20placeholder%20image'><h3>How do I change the placeholder image<\/h3><\/dt>\n<dd><p>add_filter( 'lazyload_images_placeholder_image', 'my_custom_lazyload_placeholder_image' );\n    function my_custom_lazyload_placeholder_image( $image ) {\n        return 'http:\/\/url\/to\/image';\n    }<\/p><\/dd>\n<dt id='how%20do%20i%20lazy%20load%20other%20images%20in%20my%20theme%3F'><h3>How do I lazy load other images in my theme?<\/h3><\/dt>\n<dd><p>You can use the lazyload_images_add_placeholders helper function:<\/p>\n\n<pre><code>if ( function_exists( 'lazyload_images_add_placeholders' ) )\n    $content = lazyload_images_add_placeholders( $content );\n<\/code><\/pre>\n\n<p>Or, you can add an attribute called \"data-lazy-src\" with the source of the image URL and set the actual image URL to a transparent 1x1 pixel.<\/p>\n\n<p>You can also use output buffering, though this isn't recommended:<\/p>\n\n<pre><code>if ( function_exists( 'lazyload_images_add_placeholders' ) )\n    ob_start( 'lazyload_images_add_placeholders' );\n<\/code><\/pre>\n\n<p>This will lazy load <em>all<\/em> your images.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.6.1<\/h4>\n\n<ul>\n<li>Security: XSS fix (reported by <a href=\"https:\/\/klikki.fi\/\">Jouko Pynn\u00f6ne<\/a><\/li>\n<\/ul>\n\n<h4>0.6<\/h4>\n\n<ul>\n<li>Filter to control when lazy loading is enabled<\/li>\n<\/ul>\n\n<h4>0.5<\/h4>\n\n<ul>\n<li>Fix lazyload_images_add_placeholders by adding missing return, props Kevin Smith<\/li>\n<li>Lazy load avatars, props i8ramin<\/li>\n<li>Don't lazy load images in the Dashboard<\/li>\n<li>Better compatibility with Jetpack Carousel<\/li>\n<\/ul>\n\n<h4>0.4<\/h4>\n\n<ul>\n<li>New helper function to lazy load non-post content<\/li>\n<li>Prevent circular lazy-loading<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Make LazyLoad a static class so that it's easier to change its hooks<\/li>\n<li>Hook in at a higher priority for content filters<\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Adds noscript tags to allow the image to show up in no-js contexts (including crawlers), props smub<\/li>\n<li>Lazy Load post thumbnails, props ivancamilov<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial working version<\/li>\n<\/ul>","raw_excerpt":"Lazy load images to improve page load times and server bandwidth. Images are loaded only when visible to the user.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=553"}],"author":[{"embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/automattic"}],"wp:attachment":[{"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=553"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=553"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=553"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=553"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}