wm003
12 Oct 2007, 9:23 AM
Just a suggestion:
i recognized in my other (non ext-) projects, its incredibly faster to create new DOM Elements by storing them into an empty iframe by using document.write instead of using innerHTML.
In my tests i tried to dynamically change a huge list-element with 3500 elements completely.
By using innerHTML, it took about 10 seconds ... but by storing the string with document.write into an empty iframe it took just 100ms (!!) The iframe was exactly positioned as where the div container (when using innerHTML) would be positioned, so the layout was still the same.
Maybe thats an option to get especially the "grid-with-thousands-of-rows-without-using-paging-is-slow"-problem get solved or just much more faster? Jack, what do you think?
e.g.
assume HTML_String has about 3500 or more elements inside like
<li><span></span><code></code></li>slow
document.getElementById("myDiv").innerHTML = HTML_String;fast
writeFrame.document.open();
writeFrame.document.write(HTML_String);
writeFrame.document.close();
i recognized in my other (non ext-) projects, its incredibly faster to create new DOM Elements by storing them into an empty iframe by using document.write instead of using innerHTML.
In my tests i tried to dynamically change a huge list-element with 3500 elements completely.
By using innerHTML, it took about 10 seconds ... but by storing the string with document.write into an empty iframe it took just 100ms (!!) The iframe was exactly positioned as where the div container (when using innerHTML) would be positioned, so the layout was still the same.
Maybe thats an option to get especially the "grid-with-thousands-of-rows-without-using-paging-is-slow"-problem get solved or just much more faster? Jack, what do you think?
e.g.
assume HTML_String has about 3500 or more elements inside like
<li><span></span><code></code></li>slow
document.getElementById("myDiv").innerHTML = HTML_String;fast
writeFrame.document.open();
writeFrame.document.write(HTML_String);
writeFrame.document.close();