HTML and CSS Reference
Although setTimeout and setInterval are rudimentary compared to the threading libraries
common in most programming languages, it is important to have a strong grasp of what
they do, and when you should use them. They do allow many of the issues associated with
the single thread model (particularly unresponsive GUIs, and slow reactions to user events)
to be alleviated.