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

97
Views
HTMLImageElement.complete not returning correct value

The code below works fine when page is loaded for the first time, it prints true/false if an img is loaded/not loaded.

But when I refresh the page, it prints false for all the imgs.

Why is this happening when the mdn docs says:

The image is considered completely loaded if any of the following are true:

  1. The image element has previously determined that the image is fully available and ready for use.

mdn doc

    let imgs = document.querySelectorAll("img");

    for(let img of imgs) {
      console.log(img.complete);
    }
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!