Any articles or books tell us the internal principle of setTimeout and setInterval

I wanna get some deep information about how browser implements the dispatch mechanism of events , native setTimeout and setInterval. Any books or articles reference it?

This events section at quirksmode covers them in great depth.

For setTimeout and [url=“https://developer.mozilla.org/en/DOM/window.setInterval”]setInterval, there’s more depth to them at the [url=“http://jibbering.com/faq/notes/closures/#clClDo”]What can be done with Closures? page.

Thanks!