-
Notifications
You must be signed in to change notification settings - Fork 57
$.sleep()
Arthur Guiot edited this page Sep 9, 2017
·
1 revision
This function is simple, you just need to tell it how many milliseconds you want JavaScript to sleep.
In other words, if you want to trigger some stuff in the main thread (without using setTimeout()
), this function will be useful.
$.sleep(1000);
alert("I'm 1 second late!");
- Home
- The Core Languages
- Getting Started: Installation
- The Basics (
$.var()
+$.target()
) - Developing for DisplayJS
-
$.select()
- Text related
- If...else
$.xss()
$.repeat()
$.custom()
$.live()
$.load()
$.on()
$.onEvent()
$.ready()
- Scroll API
$.all()
$.clone()
$.is()
$.valEmpty()
$.remove()
$.show()
&$.hide()
$.ajax()
- Class Related
$.css()
$.getStyle()
- Fade effects
$.extend()
$.dynamic()
$.parent()
- Elements-Nodes
$.component()
$.time_ago()
$.copy()
$.then()
$.sleep()
$.getProp()