Comments on: jQuery for Everyone: Slick Speed Test http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/ No GeekSpeak on SharePoint 2007 WSS and MOSS Mon, 27 Dec 2010 14:28:49 -0500 http://wordpress.org/?v=2.8.6 hourly 1 By: AutoSponge http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-18087 AutoSponge Fri, 16 Oct 2009 20:29:46 +0000 http://www.endusersharepoint.com/?p=1746#comment-18087 @Daniel, Thanks for your comments. This test was an evaluation of JavaScript libraries *OUTSIDE* of WSS/MOSS. The (possibly erroneous) conclusion is that *IF* you're going to use a library, use one that is lighter and faster (since as you pointed out, and we all know, SP has a metric @$$ton of .js already). As far as "class structures," SP is basically all up in the global namespace, there aren't really classes in the classical sense. jQuery (and other good libraries) however tend to follow a single object, usually a factory function responsible for collecting DOM nodes to apply methods to. Yes, SP's js is a mess. All the more reason to use modular patterns and/or a library. Stay out of the global namepsace to avoid conflicts. I for one *WILL* use a library when I'm working with a sloppy DOM like SP's and most of the users have IE {shiver}. I just don't have the time to burn troubleshooting cross-browser issues or creating specialized collection routines looking for nodes without classes, ids, or predictable structure. Like any library choice, it's a trade off, and after the first time someone caches your library file, I'm guessing one that's worth it in the long run. After all, it's only milliseconds for my user but it's weeks for me--call me selfish. @Daniel,

Thanks for your comments. This test was an evaluation of JavaScript libraries *OUTSIDE* of WSS/MOSS. The (possibly erroneous) conclusion is that *IF* you’re going to use a library, use one that is lighter and faster (since as you pointed out, and we all know, SP has a metric @$$ton of .js already).

As far as “class structures,” SP is basically all up in the global namespace, there aren’t really classes in the classical sense. jQuery (and other good libraries) however tend to follow a single object, usually a factory function responsible for collecting DOM nodes to apply methods to.

Yes, SP’s js is a mess. All the more reason to use modular patterns and/or a library. Stay out of the global namepsace to avoid conflicts.

I for one *WILL* use a library when I’m working with a sloppy DOM like SP’s and most of the users have IE {shiver}. I just don’t have the time to burn troubleshooting cross-browser issues or creating specialized collection routines looking for nodes without classes, ids, or predictable structure.

Like any library choice, it’s a trade off, and after the first time someone caches your library file, I’m guessing one that’s worth it in the long run. After all, it’s only milliseconds for my user but it’s weeks for me–call me selfish.

]]>
By: Daniel OBrien http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-18041 Daniel OBrien Wed, 14 Oct 2009 20:33:13 +0000 http://www.endusersharepoint.com/?p=1746#comment-18041 How can you draw the conclusion that SharePoint performance can be judged by this benchmark test? The site says that “no library or framework is included in the main javascript test, to avoid favoritism.” Given the vast multitude of javascript libraries that are loading with every page view--particularly in MOSS--how can we be sure that there wouldn't be far more errors due to duplicate function or variable definitions, or slower execution in general due to the extensive class structures loaded in memory? How can you draw the conclusion that SharePoint performance can be judged by this benchmark test? The site says that “no library or framework is included in the main javascript test, to avoid favoritism.”

Given the vast multitude of javascript libraries that are loading with every page view–particularly in MOSS–how can we be sure that there wouldn’t be far more errors due to duplicate function or variable definitions, or slower execution in general due to the extensive class structures loaded in memory?

]]>
By: Ross (Inflecto Systems) http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-16503 Ross (Inflecto Systems) Tue, 01 Sep 2009 02:07:56 +0000 http://www.endusersharepoint.com/?p=1746#comment-16503 A really nice article. I have been using JQuery for a while. Every once in a while I have built a page requiring JQuery which completely crumbles because of excessive use of selectors / too many components so speed can be a real issue. Glad to see IE is getting in the game also nowadays! A really nice article. I have been using JQuery for a while. Every once in a while I have built a page requiring JQuery which completely crumbles because of excessive use of selectors / too many components so speed can be a real issue. Glad to see IE is getting in the game also nowadays!

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-15605 AutoSponge Tue, 04 Aug 2009 01:19:32 +0000 http://www.endusersharepoint.com/?p=1746#comment-15605 @frank, A lot of these web parts will interact without issue but I have not personally tested that combination. In my workshop, we put 3-4 of them together with good results, but they were tested that way. @frank,

A lot of these web parts will interact without issue but I have not personally tested that combination. In my workshop, we put 3-4 of them together with good results, but they were tested that way.

]]>
By: Frank http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-15477 Frank Thu, 30 Jul 2009 22:34:02 +0000 http://www.endusersharepoint.com/?p=1746#comment-15477 I have a question for you, “Can you have ‘Printer Friendly Any Web part, Accordion Quick Launch Cookies and Load Tip Live all on the same site?” I have try to place them all on the same site, with no luck :(. I want our employees to be able to print our Training Calendar and see the ‘Load Tip’. The 'Popup' is a big hit. Thanks I have a question for you, “Can you have ‘Printer Friendly Any Web part, Accordion Quick Launch Cookies and Load Tip Live all on the same site?” I have try to place them all on the same site, with no luck :(. I want our employees to be able to print our Training Calendar and see the ‘Load Tip’. The ‘Popup’ is a big hit. Thanks

]]>
By: Stacy Spear http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-13677 Stacy Spear Fri, 12 Jun 2009 22:40:09 +0000 http://www.endusersharepoint.com/?p=1746#comment-13677 Thanks for updating the results! Thanks for updating the results!

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-13651 AutoSponge Fri, 12 Jun 2009 01:25:13 +0000 http://www.endusersharepoint.com/?p=1746#comment-13651 So, my latest test results seem to support john resig's article: http://ejohn.org/blog/javascript-performance-rundown/ Chrome beats all comers, hands down. I'm going to start doing all my demos in Chrome :) So, my latest test results seem to support john resig’s article: http://ejohn.org/blog/javascript-performance-rundown/

Chrome beats all comers, hands down. I’m going to start doing all my demos in Chrome :)

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-13650 AutoSponge Fri, 12 Jun 2009 01:04:16 +0000 http://www.endusersharepoint.com/?p=1746#comment-13650 Holy cow! Just did a new test with the current versions of all libraries, I just posted the amazing results. Holy cow! Just did a new test with the current versions of all libraries, I just posted the amazing results.

]]>
By: AutoSponge http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-13649 AutoSponge Fri, 12 Jun 2009 00:20:41 +0000 http://www.endusersharepoint.com/?p=1746#comment-13649 @Stacy Spear, Very good point. I can't find an updated version, so I'm trying to rebuild using theirs. @Stacy Spear,

Very good point. I can’t find an updated version, so I’m trying to rebuild using theirs.

]]>
By: Stacy Spear http://www.endusersharepoint.com/2009/06/11/jquery-for-everyone-slick-speed-test/comment-page-1/#comment-13641 Stacy Spear Thu, 11 Jun 2009 18:16:14 +0000 http://www.endusersharepoint.com/?p=1746#comment-13641 Interesting, but those versions are from 2007. I know for sure that jQuery is much faster now. Perhaps the same could be said of the others as well. Interesting, but those versions are from 2007. I know for sure that jQuery is much faster now. Perhaps the same could be said of the others as well.

]]>