mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-12-22 22:52:54 +00:00
Use defer
This commit is contained in:
parent
d582fa6592
commit
1f6c9e8c67
1 changed files with 5 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
||||||
<!-- jQuery -->
|
<!-- jQuery -->
|
||||||
<script async src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
|
<script src="{{ "/js/jquery-3.3.1.min.js" | relURL }}"></script>
|
||||||
|
|
||||||
<!-- index.js -->
|
<!-- index.js -->
|
||||||
<script async src="{{ "/js/index.js" | relURL }}"></script>
|
<script defer src="{{ "/js/index.js" | relURL }}"></script>
|
||||||
|
|
||||||
<!-- local time -->
|
<!-- local time -->
|
||||||
{{ if .Site.Params.localTime }}
|
{{ if .Site.Params.localTime }}
|
||||||
<script async src="{{ "/js/moment.js" | relURL }}"></script>
|
<script defer src="{{ "/js/moment.js" | relURL }}"></script>
|
||||||
<script async src="{{ "/js/moment-timezone.js" | relURL }}"></script>
|
<script defer src="{{ "/js/moment-timezone.js" | relURL }}"></script>
|
||||||
<script async src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
|
<script defer src="{{ "/js/moment-timezone-with-data-2012-2022.js" | relURL }}"></script>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
var time = moment().tz("{{ .Site.Params.timeZone }}").format("h:mm A");
|
||||||
|
|
Loading…
Reference in a new issue