{{ end }}
-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/after-content-js.html b/layouts/partials/after-content-js.html
index 211ec72..6f1f4d7 100644
--- a/layouts/partials/after-content-js.html
+++ b/layouts/partials/after-content-js.html
@@ -47,3 +47,50 @@
});
+
+{{ if .Site.Params.infiniteScroll }}
+
+{{ end }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6196c21..795f670 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -44,6 +44,11 @@
+
+{{ if .Site.Params.infiniteScroll }}
+
+{{ end }}
+
{{/* pangu support: js in the end before the body closing tag */}}
{{ if .Site.Params.features.pangu }}
diff --git a/layouts/partials/loading.html b/layouts/partials/loading.html
new file mode 100644
index 0000000..e54d4f4
--- /dev/null
+++ b/layouts/partials/loading.html
@@ -0,0 +1,8 @@
+