Skip to content

Commit 50ff248

Browse files
authored
Update README.md
1 parent 105f323 commit 50ff248

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,16 @@
11
# jQuery-Before-Ready
22
Add a jQuery .ready() handler that will execute before existing .ready() handlers.
3+
4+
jQuery exeutes .ready() functions in source code order. Sometimes we need to execute a .ready() function early.
5+
6+
<b>Instructions</b>
7+
8+
Load jquery-before-ready.js immediatley after jQuery, as as early as possible.
9+
10+
Use .beforeReady() instead of .ready()
11+
12+
<b>Example</b>
13+
14+
$.beforeReady(function() {
15+
alert("Ere I am JH")
16+
});

0 commit comments

Comments
 (0)