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

140
Views
How long will it take for content to present in a browser?

I was developing a dropdown and used some code below to find the height the dropdown should be, since it wasn't fixed.

div.style.display = "block";
let height = div.offsetHeight;
div.style.display = "none";

On my screen, I don't see the div blink from a display block to a display none, which is intended, but why? Is it because the frames of the browser is limited and the transition from 'block' to 'none' is too fast? Should I be worried the frames on another device will be too slow and will present the div for a frame or two (say the computer was slow and took more time to retrieve offsetHeight)?

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!