Skip to content

Commit

Permalink
refactor: group scripts at bottom of page
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus authored Nov 27, 2024
1 parent 9be84b9 commit d6c1673
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions www/_includes/layouts/page.webc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
layout: base.webc
---

<div webc:for="script of scripts ? [scripts].flat() : []" webc:nokeep>
<script
type="module"
:src="script.replace(/\.js$/, '.XXXXXXXX.js')"
async
webc:keep
></script>
</div>

<script webc:type="js">
this.svgsprite()
</script>
Expand All @@ -29,4 +20,12 @@ layout: base.webc
}
</style>

<div webc:for="script of scripts ? [scripts].flat() : []" webc:nokeep>
<script
type="module"
:src="script.replace(/\.js$/, '.XXXXXXXX.js')"
async
webc:keep
></script>
</div>
<script type="module" src="/lib/common/index.XXXXXXXX.js" async webc:keep></script>

0 comments on commit d6c1673

Please sign in to comment.