Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

255
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda