{"id":11219,"date":"2021-02-26T07:00:36","date_gmt":"2021-02-25T22:00:36","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=11219"},"modified":"2022-03-16T06:04:53","modified_gmt":"2022-03-15T21:04:53","slug":"wordpress-5-7-will-support-native-lazy-loading-for-iframe","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/wordpress-5-7-will-support-native-lazy-loading-for-iframe\/","title":{"rendered":"WordPress 5.7\u304ciframe\u306e\u30cd\u30a4\u30c6\u30a3\u30d6Lazy-loading\u3092\u30b5\u30dd\u30fc\u30c8"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e2d\u7d1a]<\/p>\n<p>WordPress \u304c<a href=\"https:\/\/make.wordpress.org\/core\/2021\/02\/19\/lazy-loading-iframes-in-5-7\/\">\u30d0\u30fc\u30b8\u30e7\u30f3 5.7 \u3067<\/a>\u3001<code>iframe<\/code> \u306e<a href=\"https:\/\/web.dev\/browser-level-image-lazy-loading\/\">\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading<\/a> \u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p class=\"p60-b\">\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u306f\u3001JavaScript \u306e\u5c02\u7528\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u5fc5\u8981\u3068\u305b\u305a\u306b\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u6a19\u6e96\u6a5f\u80fd\u3068\u3057\u3066 HTML \u5c5e\u6027\u3067\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3092\u5b9f\u88c5\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<br \/><a href=\"https:\/\/www.suzukikenichi.com\/blog\/native-lazy-loading-images-is-coming-to-wordpress-5-5\/\">WordPress \u306f 5.5 \u3067\u3001\u753b\u50cf\uff08<code>img<\/code> \u30bf\u30b0\uff09\u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u3092\u30b5\u30dd\u30fc\u30c8<\/a>\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>iframe \u30bf\u30b0\u306b lazy=loading \u3092\u81ea\u52d5\u8ffd\u52a0<\/h2>\n<p>\u753b\u50cf <code>img<\/code> \u30bf\u30b0\u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u3068\u540c\u69d8\u306b\u3001<code>iframe<\/code> \u30bf\u30b0\u306b\u3082 <code>loading=\"lazy\"<\/code> \u3092 WordPress \u304c\u81ea\u52d5\u3067\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u306b\u3088\u308a\u3001<a href=\"https:\/\/www.suzukikenichi.com\/blog\/chrome-has-made-improvements-to-align-the-native-image-lazy-loading-distance-from-viewport-thresholds\/\">\u898f\u5b9a\u306e\u3057\u304d\u3044\u5024<\/a>\u3088\u308a\u3082\u4e0b\u306b\u4f4d\u7f6e\u3059\u308b iframe \u8981\u7d20\u306f\u3059\u3050\u306b\u306f\u8aad\u307f\u8fbc\u307e\u308c\u305a\u3001\u30d3\u30e5\u30fc\u30dd\u30fc\u30c8\u306b\u8fd1\u3065\u304f\u3068\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\u5f8c\u304b\u3089\u8aad\u307f\u8fbc\u3080\u3053\u3068\u3067\u3001\u30da\u30fc\u30b8\u306e\u521d\u671f\u8868\u793a\u306e\u9ad8\u901f\u5316\u304c\u56f3\u3089\u308c\u307e\u3059\u3002<\/p>\n<p class=\"p40-b\">iframe \u3092\u4f7f\u3046\u6a5f\u4f1a\u306f\u753b\u50cf\u307b\u3069\u306f\u591a\u304f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<br \/>\u305d\u308c\u3067\u3082\u3001YouTube \u52d5\u753b\u306e\u57cb\u3081\u8fbc\u307f\u306f iframe \u3067\u3059\u3002<br \/>YouTube \u52d5\u753b\u3092\u983b\u7e41\u306b\u57cb\u3081\u8fbc\u3080\u30b5\u30a4\u30c8\u3067\u306f\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3067\u30da\u30fc\u30b8\u304c\u901f\u304f\u306a\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>width\/height \u5c5e\u6027\u3092\u5fd8\u308c\u305a\u306b<\/h2>\n<p>WordPress \u304c\u81ea\u52d5\u3067 <code>iframe<\/code> \u30bf\u30b0\u306b <code>loading=\"lazy\"<\/code> \u3092\u8ffd\u52a0\u3057\u307e\u3059\u304c\u3001\u6761\u4ef6\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><code>width<\/code> \u5c5e\u6027\u3068 <code>height<\/code> \u5c5e\u6027\u304c\u4ed8\u3044\u3066\u3044\u308b <code>iframe<\/code> \u30bf\u30b0\u304c\u5bfe\u8c61\u3067\u3059\uff08CLS \u306e\u767a\u751f\u3092\u9632\u3050\u305f\u3081\uff09\u3002<\/p>\n<p>YouTube \u306e\u57cb\u3081\u8fbc\u307f\u30b3\u30fc\u30c9\u306b\u306f\u3001\u6a19\u6e96\u3067 <code>width<\/code>\/<code>height<\/code> \u304c\u8a2d\u5b9a\u3057\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\u81ea\u5206\u3067\u3001iframe \u3092\u4f7f\u3046\u3068\u304d\u306f <code>width<\/code>\/<code>height<\/code> \u5c5e\u6027\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p class=\"p40-b\">\u306a\u304a\u3001\u81ea\u52d5\u3067\u8ffd\u52a0\u3057\u3066\u307b\u3057\u304f\u306a\u3044\u3068\u304d\u306f<a href=\"https:\/\/make.wordpress.org\/core\/2021\/02\/19\/lazy-loading-iframes-in-5-7\/#:~:text=Customizing%20lazy-loading%20iframes\">\u30d5\u30a3\u30eb\u30bf\u3067\u7121\u52b9<\/a>\u306b\u3067\u304d\u307e\u3059\u3002 <br \/>\u307e\u305f\u3001\u81ea\u5206\u3067\u3042\u3089\u304b\u3058\u3081\u8ffd\u52a0\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u5236\u5fa1\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/><code>loading=\"eager\"<\/code> \u3092\u4ed8\u3051\u3066\u304f\u3068\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u305b\u305a\u306b\u3001\u30da\u30fc\u30b8\u306e\u8868\u793a\u3068\u540c\u6642\u306b\u8aad\u307f\u8fbc\u307f\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30cd\u30a4\u30c6\u30a3\u30d6 iframe \u306e\u30d6\u30e9\u30a6\u30b6\u30b5\u30dd\u30fc\u30c8\u72b6\u6cc1<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u66f8\u3044\u3066\u3044\u308b\u6642\u70b9\u3067\u306e<a href=\"https:\/\/caniuse.com\/loading-lazy-attr\">\u4e3b\u8981\u30d6\u30e9\u30a6\u30b6\u306e\u30cd\u30a4\u30c6\u30a3\u30d6 iframe \u306e\u30b5\u30dd\u30fc\u30c8\u72b6\u6cc1<\/a>\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" itemprop=\"image\" loading=\"lazy\" class=\"bdr\" src=\"https:\/\/www.suzukikenichi.com\/images\/native-lazy-loadng-iframe.png\" alt=\"\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u306e\u30d6\u30e9\u30a6\u30b6\u30b5\u30dd\u30fc\u30c8\u72b6\u6cc1\" width=\"2052\" height=\"1436\" \/><\/p>\n<p>\u30e1\u30b8\u30e3\u30fc\u306a\u30d6\u30e9\u30a6\u30b6\u3067\u6b63\u5f0f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u306f\u6b21\u3067\u3059\u3002<\/p>\n<ul>\n<li>Chrome \uff08PC &#038; \u30e2\u30d0\u30a4\u30eb\uff09<\/li>\n<li>Edge<\/li>\n<li>Opera\uff08PC \u7248\u306e\u307f\uff09<\/li>\n<\/ul>\n<p>Firefox \u306f\u753b\u50cf\u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u3060\u3051\u3092\u30b5\u30dd\u30fc\u30c8\u3001Safari \u306f\u8a66\u9a13\u6a5f\u80fd\u3068\u3057\u3066\u306e\u30b5\u30dd\u30fc\u30c8\u3067\u3059\u3002<\/p>\n<p>\u3042\u307e\u308a\u591a\u304f\u306a\u3044\u3067\u3059\u306d\u3002<br \/>\u3067\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u666e\u901a\u306b\u8aad\u307f\u8fbc\u3080\u3060\u3051\u306a\u306e\u3067\u5bb3\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"p60-t\">WordPress 5.7 \u306e\u6b63\u5f0f\u7248\u306f 3 \u6708\u306b\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a\u3067\u3059\u3002<br \/>WordPress \u304c\u6a19\u6e96\u3067\u9ad8\u901f\u5316\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u306e\u306f\u5229\u7528\u8005\u306b\u306f\u5b09\u3057\u3044\u6539\u826f\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u304c\u30d0\u30fc\u30b8\u30e7\u30f3 5.7 \u3067\u3001iframe \u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-loading \u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4e88\u5b9a\u3060\u3002<\/p>\n","protected":false},"author":1,"featured_media":11224,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1600],"tags":[759,1225,1657],"class_list":["post-11219","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress","category-youtube","tag-iframe","tag-lazy-load","tag-native-lazy-loading"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/11219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/comments?post=11219"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/11219\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media\/11224"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=11219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=11219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=11219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}