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

122
Views
How can I attach a handler to when a resource request is created? (e.g. img source, CSS file)

I want to be able to record the time when an image begins loading. Specifically, I append an image to the DOM, then I want to log when the browser begins the request & when the request completes.

I can log when the request completes by adding a handler to the load event.

How can I listen / log when the browser begins the request?

(Note, it is not as simple as tracking the time of appending to the DOM in JS as additional things may happen before the DOM flushes / other resources may be loading before the image)

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!