bos中是否加载了无脚本内容 [英] Does noscript content load in bg

查看:151
本文介绍了bos中是否加载了无脚本内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使启用javascript,html标记noscript是否会在后台加载内容?

每次页面加载时,我都会得到一个由JS调用的随机图像,但是我希望所有的链接(不仅仅是当前的随机链接)都被抓取。与此同时,我不希望页面加载速度变慢,因为图像像在显示时一样在后台加载:无。我还想在HTML中调用这些图像和链接,因为与Javascript有关的CMS参考问题。 解决方案

NOSCRIPT中的图像参考标记当启用Javascript时,根本不加载。



您可以测试这一点,我制作了大量的大图片,放在NOSCRIPT标签内并观看浏览器活动。 p>

Does the html tag noscript load the content in the background, even when javascript is enabled?

I have a random image that is called by JS each time the pageloads, but I would like all of the links (not just the current random one) to be crawled. At the same time, I don't want the pageload to slow down because images are loading in the background like they do with display:none. I also want to call these images and links in the html because of CMS reference issues with Javascript.

解决方案

Image references in NOSCRIPT tags are not loaded at all when Javascript is enabled.

You can test this my making a number of large images, putting them inside the NOSCRIPT tag and watching browser activity.

这篇关于bos中是否加载了无脚本内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆