window.onload vs domcontentloaded

이동규 (Justin)·2021년 11월 24일
0

The DOMContentLoaded event is fired when the document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading.

The load (onload) event can be used to detect a fully-loaded page.

profile
Frontend Developer, JamStack, Ethereum

0개의 댓글