Prefetch pages in a Chrome domain

I read in the source that chrome, when it goes to a domain, it pre-fills most of the pages that can be used for this domain. As a result, I ran into a problem. I have a greasemonkey script that needs to be entered on every page. But it looks like the browser is injecting a script for the first page in the domain and remains when I go to another page, instead of being re-indexed (this is what I want). Any ideas on how I could achieve this behavior?

+4
source share
2 answers

In fact, there is a case where Chrome will pre-cache any page specified in the cache manifest. It is intended for stand-alone scripts. However, each page upon loading will not be executed against any script entered, and any JS on these pages will not be launched.

0
source

Google Chrome will query for DNS records on the page, but it will not actively start and retrieve pages, however Firefox prefetch pages.

+2
source

Source: https://habr.com/ru/post/1304220/


All Articles