viljami/ResponsiveSlides.js — pull request #2 by naapuri (2011-12-11 22:25:35+00:00)
Title: Some optimizations for minification

Just for fun, I tried to optimize the JS code for minification, mostly by substituting repeated patterns with some new variables and removing some extra stuff. This all is quite untested, so handle with care, if at all.

The IE6 code seems a bit odd (is it really needed to call `$this.css('width', '100%')`twice? also, the feature detection `if` seems a bit verbose), so I think there should some more bytes to be saved.

I also recommend renaming `.pack.js` to `.min.js`, which is AFAIK more often used.

(I don't know which minification engine you used, but I used Google Closure.)