search

Home  >  Q&A  >  body text

javascript - script tag async attribute

According to the picture, when the attribute is async, the loading of the document is suspended when the script is executed, but many texts explain that the downloading and execution of the script and the loading of the document are executed in parallel. Is there a difference between the two? ? ? Does document loading pause when the script is executed? ? ?

伊谢尔伦伊谢尔伦2811 days ago939

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-07-05 10:47:09

    reply
    0
  • 阿神

    阿神2017-07-05 10:47:09

    Clearly, when a script that does not set the async attribute is executed, it will block the browser from rendering the page
    On the contrary, the (loading and) execution of the async script does not affect the rendering of the page

    reply
    0
  • Cancelreply