ui: Don't place JS file at the bottom of the page

- They should only be present in the <head>. Since all files are loaded with
'defer' attribute, it is no longer needed to place the JS files at the bottom of
the page.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2025-01-07 12:09:01 +02:00
1 parent c45bdf56dd
commit 78cba1e217
1 file changed
+2 -2
+2 -2
View File
@@ -64,6 +64,8 @@
<script type="text/javascript" src="{% static '/javascript/bootstrap5/js/bootstrap.bundle.min.js' %}" defer></script>
<script type="text/javascript" src="{% static 'theme/js/main.js' %}" defer></script>
{% block app_js %}<!-- placeholder for app-specific js files -->{% endblock %}
{% block page_js %}<!-- placeholder for page-specific js files -->{% endblock %}
{% if refresh_page_sec is not None %}
<noscript>
@@ -272,7 +274,5 @@
</div>
</footer><!--/.footer-->
</div><!--/#container-->
{% block app_js %}<!-- placeholder for app-specific js files -->{% endblock %}
{% block page_js %}<!-- placeholder for page-specific js files -->{% endblock %}
</body>
</html>