Difference between DOMContentLoaded and load events

后端 未结 6 1899
执笔经年
执笔经年 2020-11-22 08:43

What is the difference between DOMContentLoaded and load events?

6条回答
  •  感情败类
    2020-11-22 09:15

    From the Mozilla Developer Center:

    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 event can be used to detect a fully-loaded page).

提交回复
热议问题