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

252
Views
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 answers
Answer question

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 Report
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!