Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

254
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda