javascript [removed] tag - code execution before src download

后端 未结 4 1632
南方客
南方客 2020-12-12 08:35

In this snippet


Lets assume th

4条回答
  •  执念已碎
    2020-12-12 09:06

    No. The presence of a src attribute will cause the descendant nodes of the element to be ignored.

    If you had two script elements, then the second script would still always execute second because script elements are blocking.

    Only if you had two script elements and the first had defer or async attributes could the second execute before the first.

提交回复
热议问题