diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2013-05-14 13:44:42 +0200 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2013-05-14 13:44:42 +0200 |
| commit | fb6423fd8d2e0068c9c5b5bb8a643ea991e59739 (patch) | |
| tree | 5b8e07532ca7763052017e3027eb8db8affa06e6 /hyperkitty/templates/threads/right_col.html | |
| parent | 4b1df7bbdb0f0fa35cf738235aff8170a37b7d04 (diff) | |
| download | hyperkitty-fb6423fd8d2e0068c9c5b5bb8a643ea991e59739.tar.gz hyperkitty-fb6423fd8d2e0068c9c5b5bb8a643ea991e59739.tar.xz hyperkitty-fb6423fd8d2e0068c9c5b5bb8a643ea991e59739.zip | |
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.
Diffstat (limited to 'hyperkitty/templates/threads/right_col.html')
| -rw-r--r-- | hyperkitty/templates/threads/right_col.html | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/hyperkitty/templates/threads/right_col.html b/hyperkitty/templates/threads/right_col.html index cbc7772..8744f66 100644 --- a/hyperkitty/templates/threads/right_col.html +++ b/hyperkitty/templates/threads/right_col.html @@ -44,15 +44,12 @@ </form> </div> <div id="participants"> - <span id="participants_title">participants</span> ({{participants|length}}) - <ul> - {% for name, email in participants.items|sort %} - <li> - {% gravatar email 20 %} - {{ name|escapeemail }} - </li> - {% endfor %} - </ul> + {% if is_bot %} + {% include 'threads/participants.html' %} + {% else %} + <span id="participants_title">participants</span> + <img alt="Loading..." class="ajaxloader" src="{{ STATIC_URL }}img/ajax-loader.gif" /> + {% endif %} </div> </section> |
