jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

Minimization Optimization #455

Closed jtsage closed 5 years ago

jtsage commented 5 years ago

There are places in the code we don't assign temporary variables, and due to that, end up a bunch of very long option names repeated multiple times. We can cut down the .min size by leveraging this.

Goal: cut a few hundred or thousand bytes, without obfuscating code unessesarily

jtsage commented 5 years ago

Much better than the first builds. Bootstrap4 is down to 64,720 bytes (18,681 gzipped). v4 was 65,543 bytes.