arielsalminen / TinyNav.js

Responsive navigation plugin that weighs just 443 bytes
http://tinynav.viljamis.com/
635 stars 207 forks source link

Even smaller #2

Closed kristerkari closed 12 years ago

kristerkari commented 12 years ago

Closure Compiler:

Compilation was a success! Original Size: 875 bytes (457 bytes gzipped) Compiled Size: 485 bytes (295 bytes gzipped) Saved 44.57% off the original size (35.45% off the gzipped size)

arielsalminen commented 12 years ago

Good suggestions, but I'm not sure if it's really that important to make this smaller and smaller. I mean, it's already quite small and the changes don't really make it load/function faster + I anyway have some changes coming that will bump the file size up a bit soon.

I think that changing the ".change()" the way you did it, might be a bit better performance wise though, so that is something worth doing.

I'll look more in depth through these probably on the weekend. Thanks again @kristerkari : )