2 ms·
Is it just me, or does this not seem "tiny" at all? It seems to require a bunch of Closure modules, and on top of that the source itself is hundreds of lines (a
by wldlyinaccurate 12y ago
Is it just me, or does this not seem "tiny" at all? It seems to require a bunch of Closure modules, and on top of that the source itself is hundreds of lines (albeit with comments).
Nitpicking aside, it looks like an interesting approach to decoupling the DOM from your event handlers. Personally I'm happy sticking with the standard on{event} attributes for really simple stuff.
- cramforce 12y agoIt is 2.5KB to 6KB (depending on enabled flags) gzipped which is still in the realm on inlining into the HTML – thus avoiding a roundtrip for enabling event handling (even if all the handlers do is download the modules that have the actual implementation).
- espeed 12y agoThe Closure advanced compiler can reduce the size significantly (https://developers.google.com/closure/compiler/docs/compilation_levels https://developers.google.com/closure/compiler/docs/compilat...).