Skip to content

Commit

Permalink
Move scripts into <head> with defer
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 22, 2023
1 parent de04dd5 commit 209196a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dna-engine": "~3.0",
"highlight.js": "~11.8",
"jshint": "~2.13",
"w3c-html-validator": "~1.3",
"w3c-html-validator": "~1.4",
"web-ignition": "~2.0"
}
}
10 changes: 5 additions & 5 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<link rel=icon href=https://centerkey.com/graphics/bookmark.png>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.4/css/all.min.css>
<link rel=stylesheet href=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/reset.min.css>
<script defer src=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.min.js></script>
<script defer src=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/lib-x.min.js></script>

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- hljs-enhance -->
Expand All @@ -19,9 +21,9 @@
<!-- -->
<link rel=stylesheet href=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/styles/docco.min.css>
<link rel=stylesheet href=hljs-enhance.css>
<script src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/highlight.min.js></script>
<script src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/languages/http.min.js></script>
<script src=hljs-enhance.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/highlight.min.js></script>
<script defer src=https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.8/build/languages/http.min.js></script>
<script defer src=hljs-enhance.js></script>
<!-- -->
<!-- Style theme listing (and example css filenames): -->
<!-- https://highlightjs.org/static/demo -->
Expand Down Expand Up @@ -155,7 +157,5 @@ <h2>Adds a little extra stuff to highlight.js</h2>
</p>
</footer>

<script src=https://cdn.jsdelivr.net/npm/dna-engine@3.0/dist/dna-engine.min.js></script>
<script src=https://cdn.jsdelivr.net/npm/web-ignition@2.0/dist/lib-x.min.js></script>
</body>
</html>

0 comments on commit 209196a

Please sign in to comment.