Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 542 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 542 Bytes

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")
});