Skip to content

Commit

Permalink
defer htmx, jquery and comments javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed Dec 22, 2023
1 parent 604d567 commit 858f5b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cast/templates/cast/bootstrap4/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
{% block modal %}{% endblock modal %}
<div class="additional_javascript">
{% block javascript %}
<script src="{% static 'cast/js/bootstrap4/bootstrap.min.js' %}"></script>
<script src="{% static 'cast/js/htmx.min.js' %}"></script>
<script defer src="{% static 'cast/js/bootstrap4/bootstrap.min.js' %}"></script>
<script defer src="{% static 'cast/js/htmx.min.js' %}"></script>

{% block template_script %}{% endblock template_script %}
{% endblock javascript %}
Expand Down
4 changes: 2 additions & 2 deletions cast/templates/cast/bootstrap4/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
{% vite_asset 'src/gallery/image-gallery-bs4.ts' app="cast" %}

<!-- full query is needed for comments -->
<script src="{% static 'cast/js/jquery/jquery-3.7.1.min.js' %}"></script>
<script type="text/javascript" src="{% static 'fluent_comments/js/ajaxcomments.js' %}"></script>
<script defer src="{% static 'cast/js/jquery/jquery-3.7.1.min.js' %}"></script>
<script defer type="text/javascript" src="{% static 'fluent_comments/js/ajaxcomments.js' %}"></script>
{% if page.has_audio %}
<script src="{% static 'cast/js/web-player/embed.4.js' %}"></script>
{% for pk, audio in page.media_lookup.audio.items %}
Expand Down

0 comments on commit 858f5b0

Please sign in to comment.