You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/jquery-fundamentals/document-ready.md
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@ title : "$(document).ready()"
5
5
---
6
6
## $(document).ready()
7
7
8
-
You cannot safely manipulate a page until the document is “ready.” jQuery detects this state of readiness for you; code included inside `$(document).ready()` will only run once the page is ready for JavaScript code to execute.
8
+
You cannot safely manipulate a page until the document is “ready.”
9
+
jQuery detects this state of readiness for you; code included inside
10
+
`$(document).ready()` will only run once the page is ready for JavaScript code to execute.
9
11
10
12
<divclass="example"markdown="1">
11
13
A $(document).ready() block
@@ -15,7 +17,9 @@ A $(document).ready() block
15
17
});
16
18
</div>
17
19
18
-
There is a shorthand for `$(document).ready()` that you will sometimes see; however, I recommend against using it if you are writing code that people who aren't experienced with jQuery may see.
20
+
There is a shorthand for `$(document).ready()` that you will sometimes see; however,
21
+
I recommend against using it if you are writing code that people who aren't experienced
0 commit comments