Skip to content

javascriptlove/ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ready

A cross-browser way of handling the document onReady event.

Provides a way to set a function that will run after DOM is ready.

Examples

A common way to use:

ready(function() {
	// we are ready
	console.log('ready!');
});

ready returns itself, so you can add another function right away:

ready(function(){
   console.log('ready 1');     
})(function() {
   console.log('ready 2'); 
});

About

Cross-browser ready function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published