When the DOM is ready vs when all assets finish loading.
- Category: JS Misc — part of the JavaScript Tutorial on GoCareerGo
- Read the short summary above, then check the linked docs for full syntax/behaviour
- Interview tip: be ready to explain "load vs DOMContentLoaded" in one sentence, then back it up with a tiny example
// load vs DOMContentLoaded — minimal example
console.log("load vs DOMContentLoaded");Tip
Quick recall: "load vs DOMContentLoaded" — when the DOM is ready vs when all assets finish loading.