Re: [Xsltforms-support] xsltforms Performance
Brought to you by:
alain-couthures
From: Tambet M. <tam...@gm...> - 2010-01-27 08:30:28
|
Christopher Dedels wrote: > > Profiling tools report at least 13 seconds in IE 8 (2.5 seconds in > FF/Chrome) to "tab" from one field to the next, regardless of whether > the data in the field was changed. As you can expect, this is not > acceptable for my users. > > > I've noticed, that IE calculates .length property of arrays by counting all array elements. This makes such cycles especially slow: for (var i = 0; i < frm.elements.length; i++) This can be easily fixed by assigning length to a variable: var elements_length = frm.elements.length; for (var i = 0; i < elements_length; i++) You could search XSLTForms javascript code for ".length" and try if this fix makes it better. Tambet |