zotero / styles-repo

Zotero styles page
http://www.zotero.org/styles
15 stars 12 forks source link

Improve performance #15

Closed rmzelle closed 8 years ago

rmzelle commented 8 years ago

The website is still pretty slow, especially if we give users a query string like "https://www.zotero.org/styles?q=slow". Both initial page load and then the search/filtering.

Any easy fixes? Maybe swapping in a more recent jQuery version helps? 1.7 is a bit ancient by now, and there might have been some relevant performance fixes.

zuphilip commented 8 years ago

I guess that the page itself is not so small and I doubt that jQuery anyhow would give a difference. See here for the times of the different parts of the website (if we really reload the page):

time-200

rmzelle commented 8 years ago

http://tools.pingdom.com/fpt/#!/dsnrEv/https://www.zotero.org/styles?q=slow --> 15 seconds http://www.webpagetest.org/result/160223_38_XT1/ --> 20 seconds https://gtmetrix.com/reports/www.zotero.org/d9NO5U7N --> 6 seconds

Especially the search can be real slow, though. Loading a page with a search string like the one above takes over 10 seconds to finish on my own computer.

zuphilip commented 8 years ago

Hm.. as you see above I have under 2s in Firefox, but yes that seems much longer in Chrome... Some more browser tests: http://browsershots.org/https://www.zotero.org/styles?q=slow

rmzelle commented 8 years ago

jQuery 3.0 may get some show/hide performance improvements: http://blog.jquery.com/2016/01/14/jquery-3-0-beta-released/ (see .show() and .hide() methods)

That probably still wouldn't speed up Chrome, though (which really takes 20 seconds to finish loading https://www.zotero.org/styles?q=slow):

image

dstillman commented 8 years ago

We're on this. (New, much faster version is actually mostly done, but our developer working on it is gone for a couple weeks.)

rmzelle commented 8 years ago

Want a beta-tester?

dstillman commented 8 years ago

The updated page is out. Chrome should now be very fast, Firefox a bit less so but still much improved. If you've visited the page recently you might need to refresh to get the latest version.

rmzelle commented 8 years ago

Ah, the interface will stay the same? Can you tell us what sped things up the most? (just curious)

tnajdek commented 8 years ago

@rmzelle there are three factors that made the page faster:

rmzelle commented 8 years ago

Great, thanks for explaining. The webpage indeed feels much snappier.