File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33Since JavaScript is asynchronous, it is possible to schedule the execution of a
44function using the ` setTimeout ` and ` setInterval ` functions.
55
6- > ** Note:** Timeouts are ** not** part of the ECMAScript Standard. They are
7- > implemented as part of the [ DOM] [ 1 ] .
6+ > ** Note:** Timeouts are ** not** part of the ECMAScript standard. They were
7+ > implemented in [ BOM, or DOM Level 0] [ 1 ] , which are never defined nor
8+ > documented formally. No recommended specification has been published so far,
9+ > however, they are currently being standardized by [ HTML5] [ 2 ] . Due to this
10+ > nature, the implementation may vary from browsers and engines.
811
912 function foo() {}
1013 var id = setTimeout(foo, 1000); // returns a Number > 0
@@ -163,5 +166,5 @@ be passed that then takes care of the actual call.
163166Furthermore, the use of ` setInterval ` should be avoided because its scheduler is not
164167blocked by executing JavaScript.
165168
166- [ 1 ] : http://en.wikipedia.org/wiki/Document_Object_Model " Document Object Model "
167-
169+ [ 1 ] : http://www.nczonline.net/blog/2009/09/29/web-definitions-dom-ajax-and-more/ " Web definitions: DOM, Ajax, and more "
170+ [ 2 ] : http://www.w3.org/TR/2014/WD-html5-20140617/webappapis.html#timers " 6 Web application APIs - HTML5 "
You can’t perform that action at this time.
0 commit comments