-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
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:
Line 27 in 23c4aed
| $.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.
Metadata
Metadata
Assignees
Labels
No labels