Skip to content

Commit

Permalink
async -> defer
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 17, 2023
1 parent 801d07b commit 636cb5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/custom_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<script src="{{ (replaceRE "^.*/" "hardlink/js/" .) | relURL }}" type="module"></script>
{{ end }}
{{ else }}
<script async src="https://cdn.jsdelivr.net/combine/{{ delimit (apply . "replaceRE" "^([^/]+)/(.+)\\.js$" "npm/@xiee/$1/js/$2.min.js" ".") "," }}"></script>
<script src="https://cdn.jsdelivr.net/combine/{{ delimit (apply . "replaceRE" "^([^/]+)/(.+)\\.js$" "npm/@xiee/$1/js/$2.min.js" ".") "," }}" defer></script>
{{ end }}
{{ end }}

0 comments on commit 636cb5a

Please sign in to comment.