From e381dbd387f39ec4026229b1f3f6fcb6a6732d64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Wed, 30 Oct 2024 14:36:38 +0100 Subject: [PATCH] #167 improve performance by switching to load event and using intersection observer to defer initialization --- .../_list_of_posts_and_paging_controls.html | 7 ------ .../cast/bootstrap4/blog_list_of_posts.html | 22 ++++++++++++++----- docs/releases/0.2.40.rst | 6 +++++ 3 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 docs/releases/0.2.40.rst diff --git a/cast/templates/cast/bootstrap4/_list_of_posts_and_paging_controls.html b/cast/templates/cast/bootstrap4/_list_of_posts_and_paging_controls.html index f59bff20..f8354af2 100644 --- a/cast/templates/cast/bootstrap4/_list_of_posts_and_paging_controls.html +++ b/cast/templates/cast/bootstrap4/_list_of_posts_and_paging_controls.html @@ -13,13 +13,6 @@ setModalImage($(e.target)) }); - {% if use_audio_player %} - {% for post in posts %} - {% for pk, audio in post.media_lookup.audio.items %} - - {% endfor %} - {% endfor %} - {% endif %}