diff --git a/cast/templates/cast/bootstrap4/blog_list_of_posts.html b/cast/templates/cast/bootstrap4/blog_list_of_posts.html
index 739f2722..b4cb11cc 100644
--- a/cast/templates/cast/bootstrap4/blog_list_of_posts.html
+++ b/cast/templates/cast/bootstrap4/blog_list_of_posts.html
@@ -118,9 +118,11 @@
});
}
- document.body.addEventListener('htmx:afterSwap', (event) => {
+ document.body.addEventListener('htmx:afterSettle', (event) => {
if (event.detail.target.id === 'paging-area') {
- initializePodlovePlayers();
+ setTimeout(() => {
+ initializePodlovePlayers();
+ }, 1500); // Adjust the delay as needed -> wait to finish scrolling up
}
});