GK Question

technology medium fill_blank

The JavaScript event that fires when a web page has fully loaded is ________.

Answer: DOMContentLoaded / load

DOMContentLoaded fires when HTML is parsed (without waiting for styles/images); load fires when all resources (images, CSS) are fully loaded. Choosing appropriate event ensures scripts execute at right time. Critical for web performance and user experience optimization questions.

Topic Web Technologies
Exam Relevance SSC JE, Banking IT, Railway