{"id":10726,"date":"2020-07-15T06:50:53","date_gmt":"2020-07-14T21:50:53","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=10726"},"modified":"2022-03-16T06:04:59","modified_gmt":"2022-03-15T21:04:59","slug":"native-lazy-loading-for-iframe-added-to-the-web-standard","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/native-lazy-loading-for-iframe-added-to-the-web-standard\/","title":{"rendered":"iframe\u306e\u30cd\u30a4\u30c6\u30a3\u30d6Lazy-load\u304c\u30a6\u30a7\u30d6\u6a19\u6e96\u306b\u3001&lt;iframe&gt;\u30bf\u30b0\u306bloading=lazy\u5c5e\u6027\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u53ef\u80fd\u306b"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e0a\u7d1a]<\/p>\n<p><code>&lt;iframe&gt;<\/code> \u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u304c<a href=\"https:\/\/github.com\/whatwg\/html\/pull\/5579\">\u30a6\u30a7\u30d6\u6a19\u6e96\u306b\u306a\u308a\u307e\u3057\u305f<\/a>\u3002<\/p>\n<div class=\"p60-b\">\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">Native lazy-loading for &lt;iframe&gt; was added to the HTML standard today: <a href=\"https:\/\/t.co\/KgO8lIBdEK\">https:\/\/t.co\/KgO8lIBdEK<\/a><\/p>\n<p>Thanks <a href=\"https:\/\/twitter.com\/domfarolino?ref_src=twsrc%5Etfw\">@domfarolino<\/a> for the heavy lifting with spec &amp; tests &#x1f389; <a href=\"https:\/\/t.co\/GLy6qHE7l5\">https:\/\/t.co\/GLy6qHE7l5<\/a><\/p>\n<p>&mdash; Simon Pieters (@zcorpan) <a href=\"https:\/\/twitter.com\/zcorpan\/status\/1280977925685358592?ref_src=twsrc%5Etfw\">July 8, 2020<\/a><\/p><\/blockquote>\n<p> <script defer src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/div>\n<h2>YouTube \u52d5\u753b\u3067\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load<\/h2>\n<p><a href=\"https:\/\/web.dev\/native-lazy-loading\/\">\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load<\/a> \u306f\u3001<code>loading=lazy<\/code> \u5c5e\u6027\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<br \/>\n\u5c02\u7528\u306e JavaScript \u306f\u4e0d\u8981\u3067\u3059\u3002<br \/>\u30d6\u30e9\u30a6\u30b6\u306e\u6a19\u6e96\u6a5f\u80fd\u3068\u3057\u3066 Lazy-load \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3082\u3068\u3068\u3082\u306f <a href=\"https:\/\/www.suzukikenichi.com\/blog\/chrome-may-support-lazy-load-natively\/\">Chrome \u306e\u72ec\u81ea\u6a5f\u80fd\u3068\u3057\u3066 Google \u304c\u958b\u767a<\/a>\u3057\u307e\u3057\u305f\u3002<br \/><a href=\"https:\/\/www.suzukikenichi.com\/blog\/chrome-76-supports-native-native-loading\/\">Chrome 76 \u3067\u6b63\u5f0f\u6a5f\u80fd\u3068\u3057\u3066\u5b9f\u88c5<\/a>\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u5f8c\u3001\u4eca\u5e74\uff082020\u5e74\uff092 \u6708\u306b\u306f Google \u72ec\u81ea\u306e\u6a5f\u80fd\u304b\u3089<a href=\"https:\/\/www.suzukikenichi.com\/blog\/native-image-lazy-loading-is-now-officially-a-web-standard\/\">\u30a6\u30a7\u30d6\u6a19\u6e96\u306e\u6a5f\u80fd\u3078\u3068\u767a\u5c55<\/a>\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u306a\u304c\u3089\u3001\u30a6\u30a7\u30d6\u6a19\u6e96\u306e\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u306f <code>&lt;img&gt;<\/code> \u30bf\u30b0\u3064\u307e\u308a\u753b\u50cf\u3067\u306e <code>loading<\/code> \u5c5e\u6027\u3067\u3057\u305f\u3002<br \/>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u306f <code>&lt;iframe&gt;<\/code> \u30bf\u30b0\u3067\u3082\u6a5f\u80fd\u3059\u308b\u3088\u3046\u306b\u6700\u521d\u304b\u3089\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>&lt;img&gt;<\/code> \u30bf\u30b0\u306b\u6bd4\u3079\u308b\u3068\u3001<code>&lt;iframe&gt;<\/code> \u30bf\u30b0\u3067\u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u306e\u5229\u7528\u7387\u306f\u305a\u3063\u3068\u4f4e\u3044\u3088\u3046\u3067\u3059\u3002<br \/>\u4eca\u306f\u30a6\u30a7\u30d6\u6a19\u6e96\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u3082\u3063\u3068\u7a4d\u6975\u7684\u306b\u5229\u7528\u3057\u3066\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>iframe \u306e\u4f7f\u7528\u983b\u5ea6\u306f\u753b\u50cf\u3088\u308a\u3082\u305a\u3063\u3068\u4f4e\u3044\u3068\u601d\u308f\u308c\u307e\u3059\u3002<br \/>\u3067\u3082\u305f\u3068\u3048\u3070\u3001YouTube \u306e\u52d5\u753b\u3092\u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u3057\u3066\u63b2\u8f09\u3059\u308b\u3068\u304d\u306b\u306f\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>YouTube \u52d5\u753b\u306f iframe \u3067\u57cb\u3081\u8fbc\u3080\u304b\u3089\u3067\u3059\u3002<\/p>\n<p><code>loading=\"lazy\"<\/code> \u3092\u30b3\u30fc\u30c9\u306b\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u3001YouTube \u52d5\u753b\u3092\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u5bfe\u5fdc\u306b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre style=\"overflow-x: auto\"><code class=\"green\">&lt;iframe <strong><mark>loading=\"lazy\"<\/mark><\/strong> width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/dAeRLFR3E1M\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen&gt;&lt;\/iframe&gt;\r\n<\/code><\/pre>\n<p class=\"p40-b\">\u30da\u30fc\u30b8\u306e\u4e0a\u306e\u65b9\u306b\u52d5\u753b\u3092\u8a2d\u7f6e\u3057\u305f\u3068\u304d\u306f\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3057\u307e\u305b\u3093\u304c\u3001\u4e0b\u306e\u65b9\u306b\u8a2d\u7f6e\u3057\u305f\u3068\u304d\u306f\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3057\u3001\u8868\u793a\u901f\u5ea6\u30a2\u30c3\u30d7\u306b\u5f79\u7acb\u3064\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u306a\u304a\u3001\u30e1\u30b8\u30e3\u30fc\u306a\u30d6\u30e9\u30a6\u30b6\u3068\u3057\u3066\u306f\u6b21\u304c\u3001<code>loading<\/code> \u5c5e\u6027\u306b\u3088\u308b\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Chrome (PC &#038; Android)<\/li>\n<li>Firefox (PC)<\/li>\n<li>Edge<\/li>\n<\/ul>\n<p>Safari \u306f\u3001\u5b9f\u9a13\u7684\u306a\u6a5f\u80fd\u3068\u3057\u3066\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u30b5\u30dd\u30fc\u30c8\u3092\u6709\u52b9\u306b\u3067\u304d\u307e\u3059\u3002<br \/>\u8fd1\u3044\u3046\u3061\u306b\u6a19\u6e96\u6a5f\u80fd\u306b\u306a\u308b\u3053\u3068\u304c\u671f\u5f85\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u306f\u30d6\u30e9\u30a6\u30b6\u304c\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3051\u308c\u3070\u3001\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u305b\u305a\u306b\u901a\u5e38\u3069\u304a\u308a\u306b\u8aad\u307f\u8fbc\u3080\u3060\u3051\u3067\u3059\u3002<br \/>\u4f55\u3089\u304b\u306e\u60aa\u5f71\u97ff\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p class=\"p60-t\"><a href=\"https:\/\/www.suzukikenichi.com\/blog\/google-added-native-lazy-loading-to-lists-of-recommended-lazy-loading\/\">Google \u691c\u7d22\u3067\u306f\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u304c\u63a8\u5968\u306e\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u65b9\u6cd5\u306e 1 \u3064<\/a>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u306f\u975e\u5e38\u306b\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u308b\u30da\u30fc\u30b8\u8aad\u307f\u8fbc\u307f\u9ad8\u901f\u5316\u306e\u624b\u6bb5\u3067\u3059\u3002<br \/>\u30a6\u30a7\u30d6\u6a19\u6e96\u306b\u306a\u3063\u305f\u4eca\u3001\u753b\u50cf\u306b\u3082 iframe \u306b\u3082\u4f7f\u308f\u306a\u3044\u624b\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;iframe&gt; \u306e\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u304c\u30a6\u30a7\u30d6\u6a19\u6e96\u306b\u306a\u3063\u305f\u3002&lt;iframe&gt;\u30bf\u30b0\u306bloading=lazy\u5c5e\u6027\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":10727,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[758],"tags":[1225,1657],"class_list":["post-10726","post","type-post","status-publish","format-standard","has-post-thumbnail","category-site-design-and-conversion","tag-lazy-load","tag-native-lazy-loading"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/10726","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=10726"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/10726\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media\/10727"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=10726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=10726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=10726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}