Skip to content

Commit

Permalink
Defer list.js instead
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jan 18, 2024
1 parent 72c6d3b commit 9a101b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions bolt-staff/bolt/admin/templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<script src="{{ asset('admin/jquery-3.6.1.slim.min.js') }}"></script>
<script src="{{ asset('admin/chart.js') }}" defer></script>
<script src="{{ asset('admin/admin.js') }}" defer></script>
{% block header_scripts %}{% endblock %}
</head>
<body class="flex min-h-screen text-black bg-stone-900">
<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">
Expand Down Expand Up @@ -156,9 +157,6 @@ <h1 class="text-2xl font-semibold text-stone-700">
<main class="px-4 py-6 lg:px-8">{% block content %}{% endblock %}</main>
</div>

<!-- TODO only if installed -->
{% toolbar %}

{% block footer_scripts %}{% endblock %}
</body>
</html>
8 changes: 4 additions & 4 deletions bolt-staff/bolt/admin/templates/admin/list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends "admin/base.html" %}

{% block header_scripts %}
<script src="{{ asset('admin/list.js') }}" defer></script>
{% endblock %}

{% block content %}

{% set create_url = get_create_url() %}
Expand Down Expand Up @@ -198,7 +202,3 @@
</div>

{% endblock %}

{% block footer_scripts %}
<script src="{{ asset('admin/list.js') }}"></script>
{% endblock %}

0 comments on commit 9a101b6

Please sign in to comment.