SEO 图片延迟加载

Posted hdk2016

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SEO 图片延迟加载相关的知识,希望对你有一定的参考价值。

从Google Chrome 77版本起,开始本地延迟功能。

 

如下引用原文:

I’m not sure how I missed native lazy loading in my last video! It’s pretty amazing, so I’m including it now. Lazy loading is a technique that allows you to defer the loading of non-critical resources, like off-screen <img>‘s, or <iframe>‘s - until they’re needed, increasing the performance of your page.

Starting in Chrome 76, the browser handles lazy loading for you, without the need to write custom lazy loading code, or use a separate javascript library.

 

To tell the browser you want an image, or iframe lazy loaded, use the loading=”lazy” attribute. Images and iframes that are “above the fold” load normally. And those that are below, are only fetched when the user scrolls near them.、

<img src="image.jpg" loading="lazy" width="400" height="250" alt="...">

Check out Native lazy-loading for the web on web.dev for details.

 

原文链接: https://developers.google.com/web/updates/2019/09/nic77#lazy-loading

以上是关于SEO 图片延迟加载的主要内容,如果未能解决你的问题,请参考以下文章

片段布局加载延迟

具有延迟加载图像的结构化数据?

延迟弹出对话框片段,直到其中的 webview 完成加载

如何延迟或异步此 WordPress javascript 片段以最后加载以加快页面加载时间?

php Yoast SEO规范输出的代码片段

php Yoast SEO规范输出的代码片段