Skip to content
Snippets Groups Projects
Unverified Commit effd2785 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Load htmx script in page bottom since we cannot defer it. (#4362)

parent 09aac2ca
No related branches found
No related tags found
No related merge requests found
......@@ -34,11 +34,8 @@
{% comment %}Detect if javascript is enabled; helps with styling{% endcomment %}
<script>document.querySelector("html").classList.replace("no-js", "js")</script>
<!-- htmx start: installed with npm -->
<script src="{% static 'js/vendor/htmx.min.js' %}"></script>
<script src="{% static 'js/vendor/htmx-ext-multi-swap.min.js' %}"></script>
<!-- Nprogressbar -->
<script defer src="{% static 'js/vendor/nprogress-2.0.0.min.js' %}"></script>
<!-- htmx end -->
<!-- Cookieconsent -->
<script defer src="{% static 'js/cookieconsent.js' %}"></script>
......@@ -96,6 +93,10 @@
{% cookie_banner %}
<!-- htmx start: installed with npm -->
<script src="{% static 'js/vendor/htmx.min.js' %}"></script>
<script src="{% static 'js/vendor/htmx-ext-multi-swap.min.js' %}"></script>
<!-- htmx progress, error handeling and tooltip loading -->
<script>
window.addEventListener('DOMContentLoaded', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment