Eliminate render-blocking JavaScript and CSS

前端 未结 2 679
清歌不尽
清歌不尽 2021-01-12 22:09

I am having a trouble with figuring out what \"this spsefic outcome\" in Google PageSpeed Test actually mean.

I am testing this website: www.loaistudio.com - https:

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-12 22:23

    Your browser freezes page rendering while loading JavaScript

    Quick answer: you just have to put your JavaScript src below your content.

    Why? Because when your browser begins loading JavaScript, it freezes the rest until it's done with that.

    Loading the content of your page first allows it to be displayed, and then JavaScript has all the time it needs to load.

    So do like this:

    
        
        
        
            My great body content!
            
    
                                     
                  
提交回复
热议问题