From fb6423fd8d2e0068c9c5b5bb8a643ea991e59739 Mon Sep 17 00:00:00 2001
From: Aurélien Bompard
Date: Tue, 14 May 2013 13:44:42 +0200
Subject: Speed up page loading on long threads
Speed up page loading on threads with many replies by loading the
replies asynchronously.
Preserve search engine indexation by detecting bots and serving the
usual page in one go.
---
hyperkitty/templates/thread.html | 25 +++++++++----------------
1 file changed, 9 insertions(+), 16 deletions(-)
(limited to 'hyperkitty/templates/thread.html')
diff --git a/hyperkitty/templates/thread.html b/hyperkitty/templates/thread.html
index 9de03b1..a198014 100644
--- a/hyperkitty/templates/thread.html
+++ b/hyperkitty/templates/thread.html
@@ -50,14 +50,11 @@
- {% for email in replies %}
-
-
- {% include 'messages/message.html' %}
-
-
- {% endfor %}
+ {% if is_bot %}
+ {% include 'threads/replies.html' %}
+ {% else %}
+

+ {% endif %}
@@ -80,14 +77,10 @@
--
cgit