Skip to content

Commit

Permalink
fix(loadResource): 加载 js 默认走 async
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 30, 2021
1 parent 2473759 commit 4e944ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/loadResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function loadSpecificResource(
case LoadResourceUrlType.js:
el = document.createElement('script')
el.src = url.path
el.async = true
break
case LoadResourceUrlType.css:
el = document.createElement('link')
Expand Down

0 comments on commit 4e944ac

Please sign in to comment.