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

前端 未结 9 902
北恋
北恋 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 07:15

    Why not this:

      
        
        
      
    

    If I understand things correctly, myInit is gonna get executed as soon as browser hit it in the page, which is last thing in a body.

提交回复
热议问题