问题
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