Skip to content

Commit

Permalink
Remove unnecessary JavaScript.
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Dec 7, 2023
1 parent 10d6bcf commit bd5d304
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 21 deletions.
3 changes: 0 additions & 3 deletions src/assets/js/critical.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/assets/js/script01.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/assets/js/script02.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,5 @@
{{ $style := resources.Get "scss/optional/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

{{ $js01 := resources.Get "js/script01.js" }}
{{ $js02 := resources.Get "js/script02.js" }}
{{ $js := slice $js01 $js02 | resources.Concat "js/bundle.js" }}
{{ $jsMinified := $js | resources.Minify | resources.Fingerprint }}
<script src="{{ $jsMinified.Permalink }}"></script>

</body>
</html>
3 changes: 0 additions & 3 deletions src/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
{{ $style := resources.Get "scss/critical/main.scss" | resources.ToCSS $options | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">

{{ $criticalJs := resources.Get "js/critical.js" | resources.Minify | resources.Fingerprint }}
<script src="{{ $criticalJs.Permalink }}"></script>

{{ $favicon := resources.Get "img/favicon.ico" }}
<link rel="shortcut icon" type="image/png" href="{{ $favicon.Permalink }}" />

Expand Down

0 comments on commit bd5d304

Please sign in to comment.