Web Specialist schrieb:
Thanks Christof and Klaus. After change my code(using your suggestions) I have improvements: isXMLDoc 14285 16.33% 765.625ms 765.625ms 0.054ms 0ms 15.625ms jquery.js (line 298)
merge   529     15%     703.125ms       765.625ms       1.447ms 0ms     
46.875ms        jquery.js (line 596)
each 1364 14.33% 671.875ms 3031.25ms 2.222ms 0ms 406.25ms jquery.js (line 306) attr 14285 12.33% 578.125ms 1343.75ms 0.094ms 0ms 15.625ms jquery.js (line 518) (no name) 17322 7.33% 343.75ms 343.75ms 0.02ms 0ms 15.625ms jquery.js (line 1017)
grep    329     4.67%   218.75ms        2718.75ms       8.264ms 0ms     
468.75ms        jquery.js (line 609)
find    168     2.67%   125ms   4859.375ms      28.925ms        0ms     
406.25ms        jquery.js (line 856)
filter 171 1.67% 78.125ms 2890.625ms 16.904ms 0ms 468.75ms jquery.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?

isXMLDoc is required, because in XML you cannot use document.getElementByid to search for elements with an id. In XML, the id attribute is just an attribute without that special meaning, like every attribute else.


-- Klaus

Reply via email to