{"id":2905,"date":"2020-06-22T16:31:28","date_gmt":"2020-06-22T15:31:28","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=2905"},"modified":"2022-02-17T07:13:48","modified_gmt":"2022-02-17T07:13:48","slug":"lazy-loading-images","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/css\/images-css\/lazy-loading-images","title":{"rendered":"Lazy loading images"},"content":{"rendered":"\n<p>Browers now support the loading= attribute which allows you to specify if images should be lazy loaded:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;img src=\"image.png\" loading=\"lazy\" alt=\"\u2026\" width=\"200\" height=\"200\"><\/code><\/pre>\n\n\n\n<p>Options:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>&#8220;auto&#8221;<br>Default lazy-loading behavior of the browser (same as not including the attribute).<\/li><li>&#8220;lazy&#8221;<br>Defer loading of the resource until it reaches a calculated distance from the viewport.<\/li><li>&#8220;eager&#8221;<br>Load the resource immediately, regardless of where it&#8217;s located on the page.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Browers now support the loading= attribute which allows you to specify if images should be lazy loaded: Options: &#8220;auto&#8221;Default lazy-loading behavior of the browser (same as not including the attribute). &#8220;lazy&#8221;Defer loading of the resource until it reaches a calculated distance from the viewport. &#8220;eager&#8221;Load the resource immediately, regardless of where it&#8217;s located on the [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[205,233],"tags":[],"class_list":["post-2905","post","type-post","status-publish","format-standard","hentry","category-images-css","category-images-html"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=2905"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2905\/revisions"}],"predecessor-version":[{"id":2906,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/2905\/revisions\/2906"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=2905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=2905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=2905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}