Are you ready for this?

In this tutorial, Patrick Hunlock takes us through a page’s ready states and shows how to write JavaScript code to determine when a page’s DOM elements are loaded and available.