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;
Change History (3)
comment:2 Changed 6 years ago by snover
- Keywords perf added
- Milestone 1.4.3 deleted
- Priority set to low
- 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
- Type changed from bug to enhancement
- Version changed from 1.4.2 to 1.4.3