Getting notified when the page DOM has loaded (but before [removed])

前端 未结 9 873
北恋
北恋 2020-12-09 06:37

I know there are some ways to get notified when the page body has loaded (before all the images and 3rd party resources load which fires the window.onload e

9条回答
  •  轮回少年
    2020-12-09 06:59

    Just take the relevant piece of code from jQuery, John Resig has covered most of the bases on this issue already in jQuery.

提交回复
热议问题