diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 2d03fafa..53636ff5 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -66,6 +66,13 @@
{{ $script := resources.Get "js/script.js" | minify}}
+
{{ if ($.Scratch.Get "photoswipeloaded") }}