{"id":10875,"date":"2020-09-30T06:45:10","date_gmt":"2020-09-29T21:45:10","guid":{"rendered":"https:\/\/www.suzukikenichi.com\/blog\/?p=10875"},"modified":"2020-09-30T06:38:09","modified_gmt":"2020-09-29T21:38:09","slug":"3-ways-to-prevent-placeholder-from-being-indexed-by-google","status":"publish","type":"post","link":"https:\/\/www.suzukikenichi.com\/blog\/3-ways-to-prevent-placeholder-from-being-indexed-by-google\/","title":{"rendered":"\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u306e\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092Google\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u306a\u30443\u3064\u306e\u65b9\u6cd5"},"content":{"rendered":"<p class=\"p20-b al-r small\">[\u30ec\u30d9\u30eb: \u4e2d\u7d1a]<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Lazy-load \u3067\u5229\u7528\u3059\u308b\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092 Google \u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p class=\"p30-t\">JavaScript \u3067\u753b\u50cf\u3092\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3059\u308b\u3068\u304d\u306b\u3001JavaScript \u306e\u5b9f\u884c\u304c\u5b8c\u4e86\u3057\u3066\u672c\u6765\u306e\u753b\u50cf\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\u307e\u3067\u306e\u9593\u3001\u4ee3\u308f\u308a\u306b\u8aad\u307f\u8fbc\u307e\u305b\u308b\u306e\u304c\u753b\u50cf\u304c\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u306f\u5b9f\u8cea\u7684\u306b\u610f\u5473\u304c\u3042\u308b\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u691c\u7d22\u306e\u89b3\u70b9\u304b\u3089\u898b\u308c\u3070\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u305d\u306e\u305f\u3081\u3001\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u304c Google \u306b\u53d6\u5f97\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3069\u3046\u3057\u305f\u3089\u3044\u3044\u304b\u3092\u3001\u3042\u308b\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u304c\u30de\u30fc\u30c6\u30a3\u30f3\u306b\u3000Twitter \u3067\u8cea\u554f\u3057\u307e\u3057\u305f\u3002<\/p>\n<div class=\"p40-b\">\n<blockquote class=\"twitter-tweet\">\n<p lang=\"en\" dir=\"ltr\">That does sound like inviting trouble.<br \/>There are three safe options, I&#39;d say:<\/p>\n<p>1.) No placeholder, but specify width and height attributes to avoid shifting<br \/>2.) Placeholder using CSS background-image to avoid Google picking up undesired imgs<br \/>3.) Native lazyload + width&amp;height<\/p>\n<p>&mdash; Martin Splitt @ home &#x1f3e1;&#x1f1e8;&#x1f1ed; (@g33konaut) <a href=\"https:\/\/twitter.com\/g33konaut\/status\/1310867118938820610?ref_src=twsrc%5Etfw\">September 29, 2020<\/a><\/p><\/blockquote>\n<p> <script defer src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/div>\n<h2>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u30aa\u30b9\u30b9\u30e1\u306e 3 \u3064\u306e\u65b9\u6cd5<\/h2>\n<p>\u30de\u30fc\u30c6\u30a3\u30f3\u306f 3 \u3064\u306e\u65b9\u6cd5\u3092\u63d0\u6848\u3057\u307e\u3057\u305f\u3002<\/p>\n<ul>\n<li>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u3092\u4f7f\u308f\u306a\u3044\u3002CSL \u3092\u767a\u751f\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3001\u753b\u50cf\u306b\u306f <code>width<\/code>\/<code>height<\/code> \u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f<\/li>\n<li>CSS \u306e <code>background-image<\/code>  \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f7f\u3063\u3066\u753b\u50cf\u3092\u6307\u5b9a\u3059\u308b\u3002Google \u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u907f\u3051\u308b\u305f\u3081<\/li>\n<li>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u3092\u4f7f\u3046\u3002\u753b\u50cf\u306b\u306f <code>width<\/code>\/<code>height<\/code> \u5c5e\u6027\u3092\u8ffd\u52a0\u3057\u3066\u304a\u304f<\/li>\n<\/ul>\n<p class=\"p30-t\">\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092\u305d\u3082\u305d\u3082\u4f7f\u308f\u306a\u3051\u308c\u3070\u3001\u305f\u3057\u304b\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u306d\u3002<br \/>\u305f\u3060\u3057\u3001\u4f55\u3082\u306a\u304b\u3063\u305f\u3068\u3053\u308d\u306b\u3042\u3068\u304b\u3089\u753b\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u30ec\u30a4\u30a2\u30a6\u30c8\u79fb\u52d5\u304c\u767a\u751f\u3057\u307e\u3059\u3002<br \/><a href=\"https:\/\/www.suzukikenichi.com\/blog\/google-introduces-web-vitals\/\">Core Web Vitals<\/a> \u306e 3 \u8981\u7d20\u306e 1 \u3064 CLS \u3067\u3059\u3002<br \/><code>img<\/code> \u8981\u7d20\u306b\u3001<code>width<\/code> \u5c5e\u6027\u3068 <code>height<\/code> \u5c5e\u6027\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067 CLS \u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092\u4f7f\u3046\u306e\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u753b\u50cf\u3092 CSS \u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>Googlebot \u306f CSS \u3067\u8868\u793a\u3055\u308c\u308b\u753b\u50cf\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3057\u307e\u305b\u3093\u3002<br \/>\u753b\u50cf\u691c\u7d22\u306b\u8868\u793a\u3055\u305b\u305f\u3044\u753b\u50cf\u306f CSS \u3067\u6307\u5b9a\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u304c\u3001\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u306a\u3089\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\u9006\u624b\u306b\u53d6\u3063\u305f\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/web.dev\/browser-level-image-lazy-loading\/\">\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load<\/a> \u306f\u3001JavaScript \u3092\u4f7f\u308f\u305a\u306b <code>loading<\/code> \u5c5e\u6027\u3067\u8a2d\u5b9a\u3059\u308b\u9045\u5ef6\u8aad\u307f\u8fbc\u307f\u3067\u3059\u3002<br \/>\u30d6\u30e9\u30a6\u30b6\u306e\u6a19\u6e96\u6a5f\u80fd\u3068\u3057\u3066 Lazy-load \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<br \/>\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u306e\u5834\u5408\u3082\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u306f\u4e0d\u8981\u3067\u3059\u3002<\/p>\n<p>1 \u3064\u554f\u984c\u70b9\u304c\u3042\u308b\u3068\u3059\u308c\u3070\u3001\u3059\u3079\u3066\u306e\u30d6\u30e9\u30a6\u30b6\u304c <code>loading<\/code> \u5c5e\u6027\u3092\u307e\u3060\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u306a\u3044\u70b9\u3067\u3057\u3087\u3046\u304b\u3002<br \/>\u7279\u306b\u3001Safari \u304c\u307e\u3060\u6b63\u5f0f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093\uff08\u6642\u9593\u306e\u554f\u984c\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\uff09\u3002<\/p>\n<p>\u306a\u304a\u3001<a href=\"https:\/\/coliss.com\/articles\/build-websites\/operation\/work\/lazy-load-images-for-maximum-performance.html\">\u30cd\u30a4\u30c6\u30a3\u30d6 Lazy-load \u3068 JavaScript \u306e Lazy-load \u3092\u4f75\u7528\u3059\u308b\u65b9\u6cd5<\/a>\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p class=\"p60-t\">\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u308c\u305f\u3068\u3057\u3066\u3082\u3001\u901a\u5e38\u306f\u691c\u7d22\u306b\u60aa\u3044\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3068\u306f\u601d\u3044\u307e\u305b\u3093\u3002<br \/>\u305d\u308c\u3067\u3082\u3001\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u305f\u304f\u306a\u3044\u3068\u304d\u306f\u3001\u30de\u30fc\u30c6\u30a3\u30f3\u306e\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u53c2\u8003\u306b\u3059\u308b\u3068\u3044\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lazy-load \u3067\u5229\u7528\u3059\u308b\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u753b\u50cf\u3092 Google \u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u3092\u7d39\u4ecb\u3059\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":10877,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1225],"class_list":["post-10875","post","type-post","status-publish","format-standard","has-post-thumbnail","category-google-seo","tag-lazy-load"],"_links":{"self":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/10875","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=10875"}],"version-history":[{"count":0,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/posts\/10875\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media\/10877"}],"wp:attachment":[{"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/media?parent=10875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/categories?post=10875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.suzukikenichi.com\/blog\/wp-json\/wp\/v2\/tags?post=10875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}