TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Javascript DOM blocking

4 pointsby allencover 13 years ago

1 comment

jannesover 13 years ago
In most browsers and with Intel based hardware you can only achieve 64 callbacks per second (or one callback every 15.6ms) even when using setTimeout(f, 0). [1]<p>Maybe the task of reflowing the document just takes significantly less than 15ms, so that it always finishes before the callback is executed. But I don't know how browsers are programmed so this is just a guess.<p>[1] <a href="http://software.intel.com/en-us/articles/cpu-power-utilization-on-intel-architectures/" rel="nofollow">http://software.intel.com/en-us/articles/cpu-power-utilizati...</a> (the " Interrupt Rate Granularity" section is the interesting part)