Skip to content

Commit f73693a

Browse files
authored
Create example.html
1 parent 4a5197f commit f73693a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

example.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
<script>
16+
$.beforeReady(function(){
17+
alert("This function is declared second but executes first!")
18+
})
19+
</script>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)