tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

fully-loaded.js (366B)


      1 // Return a promise, which resolves when new navigations aren't considered
      2 // client-side redirects anymore.
      3 //
      4 // Note: A long `setTimeout` is used, because client-side redirect is an
      5 // heuristic and isn't clearly specified.
      6 function fullyLoaded() {
      7  return new Promise((resolve, reject) => {
      8    addEventListener('load', () => setTimeout(resolve, 2000))
      9  });
     10 }