mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
c45bdf56dd
commit
78cba1e217
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user