Opened 10 years ago
Closed 10 years ago
#7832 closed enhancement (worksforme)
jQuery Speed Up
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.6 |
Component: | unfiled | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi, I've got 2 recommendations:
- It may come interesting for you to speed up string selectors evaluation by the folowing construction:
try {
selector = document.querySelectorAll( selector ); ... return jQuery.merge( this, selector );
} catch(error) {
processing old way
}
- I use jQuery on EDEN processors and the startup is very lazy. Probably storing results of the startup tests into the cookie might help a lot (if allowed).
I appreciate jQuery. Good luck. Petr Bozovsky, Czech Republic
Note: See
TracTickets for help on using
tickets.
jQuery's selector engine Sizzle uses
document.querySelectorAll
wherever it is supported.