Add progressive js

This commit is contained in:
Alexis Tacnet
2017-02-07 00:28:08 +01:00
parent f29c7c2a1c
commit 332e98a42f
4 changed files with 15 additions and 0 deletions

View File

@@ -8,3 +8,8 @@
hljs.initHighlightingOnLoad();
</script>
{{ end }}
<script src="{{ .Site.BaseURL }}js/progressively.min.js"></script>
<script>
progressively.init({delay: 50, throttle: 300});
</script>

View File

@@ -7,6 +7,8 @@
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/reset.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/main.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/progressively.min.css">
{{range .Site.Params.extracssfiles}}
<link rel="stylesheet" href="{{.}}">
{{end}}