[jQuery] Re: Performance monitoring

2007-06-01 Thread SamCKayak
Caching a jQuery object "globally" or any other way will help if the object is: - expensive to build, e.g., a large DOM, sprinkled with many objects as was the case with my 250 questions - reusable, e.g., a user can click to "hide all", "show all". Instead of recalculating the object, I save

[jQuery] Re: Performance monitoring

2007-05-31 Thread Web Specialist
Sam, what do you say for "caching the object globally"? I have a very very slow form page too. Cheers. 2007/5/31, SamCKayak <[EMAIL PROTECTED]>: caching the object globally made the performance suitable for production. Thanks, Sam

[jQuery] Re: Performance monitoring

2007-05-31 Thread SamCKayak
caching the object globally made the performance suitable for production. Thanks, Sam

[jQuery] Re: Performance monitoring

2007-05-31 Thread Dan G. Switzer, II
Sam, >function toggleAllDetails (obj) { > if($(obj).attr('checked')) { // Hide the correct answers? > $('ol li div.quizsubheader').hide('fast'); > } else { > $('ol li div.quizsubheader').show('fast'); > }; >}; I'd use just hide()/show(). This won't g

[jQuery] Re: Performance monitoring

2007-05-31 Thread SamCKayak
It's tolerable if I change .hide('fast') to .css('display', 'none') similar for show... Any way to track where time is being spent in JavaScript? Sam