我们常用的script标签,有两个和性能.js文件下载执行相关的属性:defer和async defer的含义[摘自https://developer.mozilla.org/En/HTML/Element/Script] This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed. async的含…
script中的async和defer defer: This Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed. sync: Set this Boolean attribute to indicate that the browser should, if possible, execute t…