Skip to content

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

License

Notifications You must be signed in to change notification settings

omarhabeh/jQuery-Before-Ready

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 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 for scripts that do not need early execution.

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%