add defer to all <script> with src

pull/83/head
Aevann 2022-12-27 03:32:37 +02:00
parent bff5723d4e
commit 077e70b623
4 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@
{# idk why snow isn't working vvvvvvvvvv #}
{% if p.award_count("snow", v) %}
<script src="{{'event/js/snow.js'|asset}}"></script>
<script defer src="{{'event/js/snow.js'|asset}}"></script>
<script nonce="{{g.nonce}}">snow(80);</script>
{% endif %}

View File

@ -1,6 +1,6 @@
{# <script src="{{'event/js/neko.js'|asset}}"></script> #}
{# <script defer src="{{'event/js/neko.js'|asset}}"></script> #}
{% if request.path == '/' %}
<script src="{{'event/js/snow.js'|asset}}"></script>
<script defer src="{{'event/js/snow.js'|asset}}"></script>
<script nonce="{{g.nonce}}">snow(80);</script>
{% endif %}

View File

@ -75,6 +75,6 @@
</div>
{% if HOLIDAY_EVENT %}
<script src="{{'event/js/darkmode.js' | asset}}"></script>
<script defer src="{{'event/js/darkmode.js' | asset}}"></script>
{% include "event/music.html" %}
{% endif %}

View File

@ -67,6 +67,6 @@
</div>
{% if HOLIDAY_EVENT %}
<script src="{{'event/js/darkmode.js' | asset}}"></script>
<script defer src="{{'event/js/darkmode.js' | asset}}"></script>
{% include "event/music.html" %}
{% endif %}