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

254
Visualizações
Preload images with link tag - remove warning (html/Javascript)

I got the following warning on the console when I try to add <link rel="preload" as="image" href="path"> into the <head>.

{path to image} was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally

I tried to add the crossorigin="anonymous" attribute but the warning persist.

Any ideas how I can remove the warning, please?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

This might happens if the image in question is not part of the page content. This warning will not show if the actual image is on the page itself. If the browser doesn't find the image on the page, but it is preloaded, you get this warning.

Also preloaded images do not need CORS

about 4 years ago · Juan Pablo Isaza Relatório
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