Skip to content

Commit

Permalink
update prefetch rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncanma committed May 11, 2024
1 parent 8027982 commit d5971b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions themes/hello-friend-ng/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<meta charset="UTF-8">
<link href="https://www.clarity.ms" rel="preconnect" >
<script type="speculationrules">
{
"prefetch": [
{
"where": { "href_matches": "/*" },
"eagerness": "eager"
}
]
}
</script>
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="author"
Expand Down
10 changes: 10 additions & 0 deletions themes/hello-friend-ng/layouts/partials/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@

{{ $js := resources.Get "js/main.js" | js.Build (dict "minify" true) }}
<script src="{{ $js.RelPermalink }}" defer></script>
<script type="speculationrules">
{
"prefetch": [
{
"where": { "href_matches": "/*" },
"eagerness": "eager"
}
]
}
</script>

{{ $baguette := resources.Get "js/baguetteBox.js"}}
{{ $secureBaguette := $baguette | resources.Fingerprint "sha512"}}
Expand Down

0 comments on commit d5971b8

Please sign in to comment.