Ticket #6823 (closed enhancement: fixed)
Make .val(value) faster for common use case
|Reported by:||RandomInsano||Owned by:|
I've built a web application that creates a few hundered forms with about six select boxes each in one page (~1200 elements).
Using the built-in functionality, it would take the creation function nearly 10 seconds to complete in Firefox 3.6. My fix for the problem was to get the direct node from jQuery, and set it's .value property. Now the page builds in < 1 second.
$(".UserName", formNode).value = 1;
- Status changed from new to open
- Summary changed from .val() calls are much slower than direct value manipulation to Make .val(value) faster for common use case
- Priority set to low
- Version changed from 1.4.2 to 1.4.3
- Milestone 1.4.3 deleted
- Keywords perf added
- Type changed from bug to enhancement