diff --git a/layouts/partials/paige/tag-link.html b/layouts/partials/paige/tag-link.html
index f4d3cde3..31c2840a 100644
--- a/layouts/partials/paige/tag-link.html
+++ b/layouts/partials/paige/tag-link.html
@@ -2,17 +2,16 @@
{{ $context := $params.context }}
{{ $crossorigin := $params.crossorigin | default "anonymous" }}
+{{ $enablesourcemap := not hugo.IsProduction }}
{{ $href := $params.href }}
{{ $includepaths := $params.includepaths }}
{{ $integrity := $params.integrity }}
+{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
{{ $page := $params.page }}
{{ $referrerpolicy := $params.referrerpolicy | default "no-referrer" }}
{{ $sass := $params.sass }}
{{ $template := $params.template }}
-{{ $enablesourcemap := not hugo.IsProduction }}
-{{ $outputstyle := cond hugo.IsProduction "compressed" "" }}
-
{{ if not $href }}
{{ errorf "layouts/partials/paige/tag-link.html: no href" }}
{{ end }}
diff --git a/layouts/partials/paige/tag-script.html b/layouts/partials/paige/tag-script.html
index 834adf11..13d4bc59 100644
--- a/layouts/partials/paige/tag-script.html
+++ b/layouts/partials/paige/tag-script.html
@@ -15,6 +15,7 @@
{{ with partial "paige/func-resource.html" (dict "page" $page "url" $src) }}
{{ $resource := . | minify | fingerprint }}
+
{{ $integrity = $resource.Data.Integrity }}
{{ $src = $resource.RelPermalink }}
{{ else }}