The Wayback Machine - https://web.archive.org/web/20200624202937/https://github.com/topics/antd-design
Skip to content
#

antd-design

Here are 51 public repositories matching this topic...

arronf2e
arronf2e commented Jul 2, 2018

普通 script

<script src="test.js"></script>

浏览器处理:

  • 阻塞 document 解析
  • 请求下载 a.js
  • 执行 a.js
  • 继续 document 解析

defer

<script src="a.js" defer></script>
<script src="b.js" defer></script>

浏览器处理:

  • 不阻塞解析 document, 并行下载 a.js, b.js
  • 下载完 a.js, b.js ,继续解析 document
  • 按照页面中出现的顺序,在其他同步脚本执行后,DOMContentLoaded 事件前依次执行 a.js, b.js

async

<script src="a.js" as

Improve this page

Add a description, image, and links to the antd-design topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the antd-design topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.