Does noscript content load in bg

*爱你&永不变心* 提交于 2019-12-22 05:39:12

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/223311/does-noscript-content-load-in-bg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!