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
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
caching the object globally made the performance suitable for
production.
Thanks,
Sam
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
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
5 matches
Mail list logo