Skip to content
Justice Tech School

Document Ready

Run code after the DOM is ready.

Example
$(document).ready(function () {
  console.log("ready");
});
$(function () {
  console.log("short form");
});

Exercise

Ready event.

$(document).(fn);

Quiz Test

Why wait for ready?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.