-
Notifications
You must be signed in to change notification settings - Fork 57
$.ready()
Arthur Guiot edited this page Jul 16, 2017
·
1 revision
This function will basically run a function when the page document is fully loaded. This will simply add the ability to run functions when everything works fine.
This function will only require 1 argument which is a callback
function that will be called when the DOM is ready.
Let's display an alert when the DOM is fully loaded:
JS:
$.ready(function () {
alert("🚨 The DOM is now ready!");
})
Don't hesitate to ask your questions
- 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()