Concatenated all JS into a single file (#624)

no issue

- moved large inline JS from templates into separate JS files
  - floating header
  - gallery card support
- use `gulp-concat` to concatenate all JS files into a single `built/casper.js` file
- reduces external JS file requests from 3 (jquery, infinite-scroll.js, jquery.fitvids.js) down to 2 (jquery, casper.js) and reduces page size by removing repeated inline code
This commit is contained in:
Kevin Ansfield
2019-10-20 15:55:06 +02:00
committed by GitHub
parent 53ad2d8096
commit 978ffe0eb6
17 changed files with 165 additions and 94 deletions

View File

@ -26,3 +26,11 @@
</div>
</progress>
</div>
{{#contentFor "scripts"}}
<script>
$(document).ready(function () {
Casper.floatingHeader();
})
</script>
{{/contentFor}}