TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Javascript DOM blocking

4 点作者 allenc超过 13 年前

1 comment

jannes超过 13 年前
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)