Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#6704 closed enhancement (invalid)

In efficient use of the dedicated body element selector

Reported by: V1 Owned by:
Priority: high Milestone: 1.5
Component: core Version: 1.5
Keywords: Cc:
Blocked by: Blocking:


Currently the optimized selector for the document.body creates a new string for the this.selector property. It should re-use the selector variable to improve minification.

The selector variable is a ideal candidate for this as the wrapping if-statement already checks if the variable is equal to body.

Patch: http://github.com/3rd-Eden/jquery/commit/fe47de388c0fec70273518de651ca4be5d4e2078

Change History (5)

comment:1 Changed 12 years ago by boushley

Since the selector variable is compressed down into a single character variable, this seems like a good way to save a couple bytes, since we are already checking the value is exactly what we want.

comment:2 Changed 12 years ago by snover

Component: selectorcore
Priority: high
Status: newopen

comment:3 Changed 12 years ago by dmethvin

Resolution: invalid
Status: openclosed

The patch has disappeared.

comment:4 Changed 12 years ago by john

Version: 1.4.4rc1.5

There wasn't a 1.4.5 release, was actually 1.5.

comment:5 Changed 12 years ago by john


There was no 1.4.5 release, was actually 1.5.

Note: See TracTickets for help on using tickets.