Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

253
Views
How to prefetch scripts for another Domain?

My goal is to fetch a Vendor.js file on my landing page

www.test.com

The Vendor.js is for a larger page that you get navigated to after clicking a Link on the landing page. You should get navigated to:

bookings.test.com

Here it should load the vendor.js that should be prefetched on the Landing page. (load from cache) But even if I prefetch it, it never works. The vendor.js will always be fetched from the server by the "main application".

How can I fetch it from the Cache?

WHat I tried on my landing page

<link rel="prefetch" href="https://bookings.test.com/vendor.js" as="script">

Here it loads the script (at least in the network tab). But as soon as I navigate to the main app, it will load the vendorjs again from the network but not the cache.

How do I access prefetched scripts from another domain?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!