Started

Selectors

Utilities

Animation

AJAX

CSS

Event

Manipulation

Cookie

String

Attributes

Data

Storage

Miscellaneous

$ready

Execute function when the DOM document is loaded.
$ready( event )
  1. event [event]
    The event that will be executed after the DOM document is loaded and ready.

Notes

This function will be executed after the DOM ducument is loaded and before image and other resources is loaded. It`s useful to get ready for the document initialization immediately before loading other resources than windows.onload().

Example

HTML code
<div id="message"></div>
JavaScript code
$ready(function ()
{
	$text($("message"), "the document is loaded");
});
Demonstration