3 ms·
Source: http://playground.mobily.pl/assets/demo/blocks/js/mobilyblocks.js http://playground.mobily.pl/assets/demo/blocks/js/mobilybloc... Why are there variabl
by chrisbroadfoot 16y ago
Source: http://playground.mobily.pl/assets/demo/blocks/js/mobilyblocks.js http://playground.mobily.pl/assets/demo/blocks/js/mobilybloc...
Why are there variables called 'social' in the source?!
Also ... seems like it could be packed much smaller. The author should run it through the Closure Compiler. In the least, lots of local variables would be obfuscated.
- zephjc 16y agoThe first example with the social network buttons was probably his inspiration, and the variable name is a hold-over. Also, with such a small code base as that, a minifier like Closure Compiler is pointless. I ran it on http://closure-compiler.appspot.com/home http://closure-compiler.appspot.com/home with "Advanced" checked: Original Size: 2.13KB (940 bytes gzipped) Compiled Size: 1.28KB (660 bytes gzipped)
- noodle 16y agobecause it was likely designed for displaying social bookmarking links in a neat way.