前端

梗概

  • script默认是会阻塞html解析 ^922570
    • 遇到script标签就会暂停html解析
  • 在script标签中添加[child::async属性]或[child::defer属性]以控制html解析与js执行的时间关系