Fix crashes on *-once elements when called at bad timings

This commit is contained in:
2026-05-06 23:19:35 +02:00
parent 38f2b6aa7b
commit 0405ef424d
2 changed files with 8 additions and 4 deletions
@@ -3,7 +3,7 @@
<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>
<link-once rel="stylesheet" type="text/css" href="{{ css }}"></link-once>
{% endfor %}
<{{ component }} name="{{ widget.name }}" {% include "django/forms/widgets/attrs.html" %}>