Does the [removed] tag position in HTML affects performance of the webpage?

前端 未结 8 1080
清酒与你
清酒与你 2020-11-29 19:39

If the script tag is above or below the body in a HTML page, does it matter for the performance of a website?

And what if used in between like this:

         


        
8条回答
  •  执笔经年
    2020-11-29 20:17

    Performance of the script itself will definitely be the same.

    The placement is important though, as explained in the article you linked, since the browser will "halt" (or "freeze") simultaneous downloads and rendering of the page when it encounters and loads the contents of a

提交回复
热议问题