Why does [removed] event occur before $(document).ready?

前端 未结 3 1178
一整个雨季
一整个雨季 2021-02-20 01:10

As stated in this thread: window.onload vs $(document).ready(). The window.onload should occur later than the $(document).ready() but in this simple co

3条回答
  •  隐瞒了意图╮
    2021-02-20 01:27

    @RoryMcCrossan saying is right, you have nothing in your html to be load on window like(image,video etc ). Now you can see how behavior of event is changed

    
    
    
    
      
       Alternate Text
    
      
    
    
    
      

    A Simple Site

提交回复
热议问题