Hacker News new | past | comments | ask | show | jobs | submit login
Javascript DOM blocking (allenc.com)
4 points by allenc on Oct 29, 2011 | hide | past | favorite | 1 comment



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]

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.

[1] http://software.intel.com/en-us/articles/cpu-power-utilizati... (the " Interrupt Rate Granularity" section is the interesting part)




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: