Load and execution sequence of a web page?

前端 未结 7 2166
盖世英雄少女心
盖世英雄少女心 2020-11-22 03:15

I have done some web based projects, but I don\'t think too much about the load and execution sequence of an ordinary web page. But now I need to know detail. It\'s hard to

7条回答
  •  轮回少年
    2020-11-22 04:18

    The chosen answer looks like does not apply to modern browsers, at least on Firefox 52. What I observed is that the requests of loading resources like css, javascript are issued before HTML parser reaches the element, for example

    
      
        
        
    
        
        
        
        
        
     
     
       
       
       
    
    

    What I found that the start time of requests to load css and javascript resources were not being blocked. Looks like Firefox has a HTML scan, and identify key resources(img resource is not included) before starting to parse the HTML.

提交回复
热议问题