This lesson, we're looking at dorm content, which is a method that gets invoked once the dorm content
has loaded and this is useful, you might see it with a jury where jury document ready.
So this is the same thing where this is an event that can get triggered once the dorm content has finished
loading.
All the HTML document is completely loaded and parsed and ready to be used and interacted with using
JavaScript.
This is an example at Mozilla, a developer network.
So how that can be used.
And as you can see, we're adding an event listener and that is dom content loaded.
And once that event occurs, then output into the console dom fully loaded and passed.
So go ahead, pause the video and try the suit.
Add in window add event listener dom content loaded and invoker function when the DOM content has a
loaded and output a message in the console.
So walk you through the example.
So we've got the window object add event listener and that that we're listening for is dom content loaded
event.
And then whenever that event is triggered we're going to output a message in the console and this will
just be ready.
So we refresh and we instantly get a message ready.
So that means that we're ready to interact with the DOM.