8
shouts

101 on jQuery Selector Performance

published 119 days, 20 hours, 56 minutes ago posted by grabnerandigrabnerandi 120 days, 9 hours, 37 minutes ago
Thursday, November 12, 2009 10:15:50 AM GMT Wednesday, November 11, 2009 9:34:28 PM GMT

Last week I got to analyze a web page that spent 4.8 seconds in the onLoad event handler of a custom script file. It turned out that 2.8 seconds were consumed by applying a dynamic menu library (will blog about this one separately). The remaining 2 seconds were spent in jQuery selectors. The analysis showed that most of the selectors didn’t return any object and those that returned objects can be improved by using different selectors.

category: Ajax | clicked: 27 | | source: blog.dynatrace.com | show counter code
tags: jQuery, Performance, Web