Skip to content

Commit 9a101b6

Browse files
committed
Defer list.js instead
1 parent 72c6d3b commit 9a101b6

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

bolt-staff/bolt/admin/templates/admin/base.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<script src="{{ asset('admin/jquery-3.6.1.slim.min.js') }}"></script>
1717
<script src="{{ asset('admin/chart.js') }}" defer></script>
1818
<script src="{{ asset('admin/admin.js') }}" defer></script>
19+
{% block header_scripts %}{% endblock %}
1920
</head>
2021
<body class="flex min-h-screen text-black bg-stone-900">
2122
<div id="admin-sidebar" data-toggle-class="hidden" class="fixed flex-col justify-between flex-shrink-0 hidden w-64 h-full px-6 pt-6 pb-5 lg:flex">
@@ -156,9 +157,6 @@ <h1 class="text-2xl font-semibold text-stone-700">
156157
<main class="px-4 py-6 lg:px-8">{% block content %}{% endblock %}</main>
157158
</div>
158159

159-
<!-- TODO only if installed -->
160160
{% toolbar %}
161-
162-
{% block footer_scripts %}{% endblock %}
163161
</body>
164162
</html>

bolt-staff/bolt/admin/templates/admin/list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{% extends "admin/base.html" %}
22

3+
{% block header_scripts %}
4+
<script src="{{ asset('admin/list.js') }}" defer></script>
5+
{% endblock %}
6+
37
{% block content %}
48

59
{% set create_url = get_create_url() %}
@@ -198,7 +202,3 @@
198202
</div>
199203

200204
{% endblock %}
201-
202-
{% block footer_scripts %}
203-
<script src="{{ asset('admin/list.js') }}"></script>
204-
{% endblock %}

0 commit comments

Comments
 (0)