Bug Tracker

Opened 11 years ago

Last modified 10 years ago

#10770 closed enhancement

Investigate re-ordering build file — at Version 2

Reported by: dcherman Owned by:
Priority: low Milestone: None
Component: build Version: 1.7
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by jzaefferer)

By changing the order that the various .js files are included, you can change the eventual gzipped output.

This is due to the way duplicate string elimination works on 32KB boundaries - since the minified source of jQuery will be greater than that, re-ordering them can change the results.


There's an existing pull request that reduces size by 140 gzipped bytes, however the re-ordering may be too drastic. That said, you can still improve the results by a lesser degree by moving a couple of them around.


Change History (2)

comment:1 Changed 11 years ago by timmywil

Component: unfiledbuild
Keywords: 1.8-discuss added
Priority: undecidedlow
Status: newopen
Version: git1.7

comment:2 Changed 11 years ago by jzaefferer

Description: modified (diff)

-1, 140bytes is the upper bound? Sounds like a waste of time.

Note: See TracTickets for help on using tickets.