someteam / acha

Git Achievements
http://acha-acha.co
Eclipse Public License 1.0
466 stars 33 forks source link

Slow site speed #12

Closed vbauer closed 9 years ago

vbauer commented 9 years ago

Browser logs:

read-transit /api/db/ (1109713 bytes): 73.624ms
acha.min.js:938 Pushed 28186 datoms
acha.min.js:986 DB initialization: 234.714ms

Hardware:

Browser: Google Chrome, Version 40.0.2214.94 m

PS: Checked on http://acha-acha.co

avasenin commented 9 years ago

We have a task to reduce the amount of users on front page and add ability to search. I hope that some day we will do this :)

In any case @tonsky already committed a code to reduce the number of users on front page but it hasn't been deployed yet.

avasenin commented 9 years ago

We've added scroll appender for users pane.

Now we show only 50 users at first and present next chunk of 20 users when users reach end of document (like Facebook or Instagram). This should significantly decrease the number of DOM elements/gravatar calls and increase site speed when the number of users > 2000+