This website requires JavaScript.
Explore
Help
Sign In
Mirror
/
zulip
mirror of
https://github.com/zulip/zulip.git
Watch
1
Star
0
Fork
You've already forked zulip
0
Code
Issues
Projects
Releases
Wiki
Activity
c8e38aaa55
zulip
/
static
/
templates
/
user_presence_rows.handlebars
5 lines
84 B
Handlebars
Raw
Normal View
History
Unescape
Escape
Move user presence sidebar to a handlebars template. (imported from commit 1f505bbda4ed67da94db8d97e8e58cb2c462d056)
2013-05-22 21:24:34 +02:00
{{! User Presence rows }}
Use one template for all user presence rows This will hopefully fix some lagginess when logging in on the Hacker School realm, especially on Firefox, as the user presence rows are populated (previously requiring hundreds of template renders). (imported from commit 67e2d7f91ad62d8d7a2e212ee7c7121bd73f010b)
2013-07-10 23:50:47 +02:00
{{
#
each
users
}}
Fix performance issues with user presence list in large realms. Whenever a user became active, this triggers an immediate presence update event (to show that user as active). The implementation for that event (running on the browsers of all other users in the realm) would fully rerender the presence list, which can be an expensive operation in a large realm, just to update the status for that one user. This fixes that case to just remove the user from the list and then re-insert it at the appropriate index. [Commit message expanded with more details by Tim Abbott]
2016-01-19 21:03:56 +01:00
{{
partial
"user_presence_row"
}}
Use one template for all user presence rows This will hopefully fix some lagginess when logging in on the Hacker School realm, especially on Firefox, as the user presence rows are populated (previously requiring hundreds of template renders). (imported from commit 67e2d7f91ad62d8d7a2e212ee7c7121bd73f010b)
2013-07-10 23:50:47 +02:00
{{
/
each
}}