Skip to content

FrauDiesel/jQuery-Before-Ready

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery-Before-Ready

Add a jQuery .ready() handler that will execute before existing .ready() handlers.

jQuery exeutes .ready() functions in source code order. Sometimes we need to execute a .ready() function early.

Instructions

Load jquery-before-ready.js immediatley after jQuery, or as as early as possible.

Use .beforeReady() instead of .ready(). You should still use .ready() as normal if early execution it's needed.

Example

$.beforeReady(function() {
    alert("Ere I am JH")
});

About

Add a jQuery .ready() handler that will execute before existing .ready() handlers.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%