Thanks Christof and Klaus. After change my code(using your suggestions) I
have improvements:
isXMLDoc1428516.33%765.625ms765.625ms0.054ms0ms15.625msjquery.js (line 298)
merge52915%703.125ms765.625ms1.447ms0ms46.875msjquery.js (line 596)each1364
14.33%671.875ms3031.25ms2.222ms0ms406.25msjquery.js (line 306)attr14285
12.33%578.125ms1343.75ms0.094ms0ms15.625msjquery.js (line 518)(no name)17322
7.33%343.75ms343.75ms0.02ms0ms15.625msjquery.js (line 1017)grep3294.67%
218.75ms2718.75ms8.264ms0ms468.75msjquery.js (line 609)find1682.67%125ms
4859.375ms28.925ms0ms406.25msjquery.js (line 856)filter1711.67%78.125ms
2890.625ms16.904ms0ms468.75msjquery.js (line 1051)
In resume: 15% in improvement. But continues to run in more than 4
seconds(average).

Why jQuery tests for isXMLDoc? How can I set jQuery to avoid that
validation?

Cheers

2007/4/22, Web Specialist <[EMAIL PROTECTED]>:

Thanks Chirstof and Klaus. Great suggestions! ;-)

I'll try right now.

Thanks again.



2007/4/22, Klaus Hartl <[EMAIL PROTECTED] >:
>
>
> Christof Donat schrieb:
> > ----
> > $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity:
> 'show'}, tabStruct:'.fragment'});
> > $('#dadosAuxiliares').triggerTab(0);
> > ----
> >
> > can be
> >
> > ----
> > $('#dadosAuxiliares').tabs( {
> >       fxShow: {height: 'show', opacity: 'show'},
> >       tabStruct:'.fragment'} ).triggerTab(0);
> > ----
>
> Also, what do you try to achieve with the triggerTab? The first tab gets
> shown by default, unless a fragment identifier/hash in the url matches
> another tab id. So you can totally omit that.
>
> In addition, change the value of the tabsStruct option - if at all
> required because it seems you're using the default structure - to:
> 'div.fragment'. This will be a little faster. But using the default will
>
> be the fastest I guess.
>
> And by the way, the index isn't zero-based in Tabs. triggerTab(0) will
> work because the index defaults to the first tab for this (invalid)
> index, but you may scratch your head in some other case, because
> triggerTab(2) for example will not trigger the third tab as you may
> think, but the second tab indeed.
>
>
> -- Klaus
>


Reply via email to