Linked into every page on the hasper theme is this partial include:
{{partial "scripts.html" .}}
Which comprises of these three script tags:
<script type="text/javascript" src="{{.Site.BaseURL}}js/jquery.js"></script>
<script type="text/javascript" src="{{.Site.BaseURL}}js/jquery.fitvids.js"></script>
<script type="text/javascript" src="{{.Site.BaseURL}}js/index.js"></script>
Adding around 200ms of load time to the page on a 4g device:

The only thing we use all the jquery code for is some smooth scrolling to jump from the cover page down to the content:
|
$.fn.arctic_scroll = function (options) { |
Definitely not worth all that load.
Look to replace this with a simple function that achieves the same functionality and drops the jquery requirement.
Linked into every page on the hasper theme is this partial include:
Which comprises of these three script tags:
Adding around 200ms of load time to the page on a 4g device:

The only thing we use all the jquery code for is some smooth scrolling to jump from the cover page down to the content:
hasper/static/js/index.js
Line 27 in 23c4aed
Definitely not worth all that load.
Look to replace this with a simple function that achieves the same functionality and drops the jquery requirement.