Remove defer from script where type=module is used

This commit is contained in:
2024-11-19 15:16:23 +01:00
committed by Bartuccio Antoine
parent 8a8851847c
commit 0485ab1120
12 changed files with 19 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
{% for js in statics.js %}
<script-once type="module" src="{{ js }}" defer></script-once>
<script-once type="module" src="{{ js }}"></script-once>
{% endfor %}
{% for css in statics.css %}
<link-once rel="stylesheet" type="text/css" href="{{ css }}" defer></link-once>

View File

@@ -1,5 +1,5 @@
<div>
<script-once type="module" src="{{ statics.js }}" defer></script-once>
<script-once type="module" src="{{ statics.js }}"></script-once>
<link-once rel="stylesheet" type="text/css" href="{{ statics.css }}" defer></link-once>
<markdown-input name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %}>{% if widget.value %}{{ widget.value }}{% endif %}</markdown-input>

View File

@@ -1,4 +1,4 @@
<script-once type="module" src="{{ statics.js }}" defer></script-once>
<script-once type="module" src="{{ statics.js }}"></script-once>
<link-once rel="stylesheet" type="text/css" href="{{ statics.css }}" defer></link-once>
<span>