Modify ↓
Ticket #3107 (closed enhancement: fixed)
Global Event Triggering Performance Enhancement
| Reported by: | mike.helgeson | Owned by: | flesler |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3 |
| Component: | event | Version: | 1.2.6 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
In my opinion the jquery core should not ever call jQuery("*") internally.
After investigating this unloading issue, I noticed another potential bottleneck with the global event triggering on line 1985 in 1.2.6 (uncompressed)
jQuery("*").add([window, document]).trigger(type, data);
I think this should be replaced by:
jQuery.each( jQuery.cache, function(){
if ( this.events && this.events[type] )
jQuery.trigger( type, data, this.handle.elem, true );
});
Attachments
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

