We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a5197f commit f73693aCopy full SHA for f73693a
example.html
@@ -0,0 +1,21 @@
1
+<!--
2
+ This example shows how the .beforeReady() function executes before the .ready() function.
3
+-->
4
+<html>
5
+ <head>
6
+ <script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
7
+ <script src="jquery-before-ready.js"></script>
8
+ </head>
9
+ <body>
10
+ <script>
11
+ $(function(){
12
+ alert("This function is declared first!")
13
+ })
14
+ </script>
15
16
+ $.beforeReady(function(){
17
+ alert("This function is declared second but executes first!")
18
19
20
+ </body>
21
+</html>
0 commit comments