Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
When a browser "reads" through an HTML page, any JavaScript it encounters is run as soon as the browser sees it. If JavaScript is written at the top of the document, it can fail if the browser hasn't seen the elements it refers to yet. We can use the DOMContentLoaded event to solve this issue.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Alsaig Sandra
Front End Web Development Techdegree Graduate 15,434 Points2 Answers
-
Nick Dicken
12,342 Points1 Answer
-
babyoscar
12,930 Points1 Answer
-
Peter Eriksson
12,187 Points1 Answer
-
arieloo
13,257 PointsCan't launch this video ! I'll try to follow along with video transcript...
Posted by arielooarieloo
13,257 Points1 Answer
-
Conary Beckford
Full Stack JavaScript Techdegree Student 5,046 Points1 Answer
-
PLUS
Christopher Debove
Courses Plus Student 18,373 Points1 Answer
-
Leon Segal
14,754 Points2 Answers
-
cyber voyager
8,859 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up