Skip to content

Commit

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

Expand Down
5 changes: 2 additions & 3 deletions cast/templates/cast/bootstrap4/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@
{% endblock %}

{% block javascript %}
<!-- block.super needs to be below full jquery because otherwise jquery-slim would overwrite calls necessary for comments -->
{{ block.super }}
{% vite_hmr_client app="cast" %}
{% vite_asset 'src/gallery/image-gallery-bs4.ts' app="cast" %}

<!-- block.super needs to be below full jquery because otherwise jquery-slim would overwrite calls necessary for comments -->
{{ block.super }}
<!-- 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>
{% if page.has_audio %}
<script src="{% static 'cast/js/web-player/embed.4.js' %}"></script>
Expand Down

0 comments on commit 604d567

Please sign in to comment.