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 2025-01-04 17:40:27 -08:00 committed by Veiko Aasa
parent c45bdf56dd
commit 78cba1e217
No known key found for this signature in database
GPG Key ID: 478539CAE680674E

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>