Vanilla JS - fast, lightweight, cross-platform framework
jQuery-like Aliases (NOT Wrappers) to HTML5 Selector API / Raw Document
- Cross-browser compatible*
- Forget chaining; its too expensive
Inspired by the classic parody vanilla-js.com.
Demonstration
# btw its XHR, not AJAX # in Node.js callback style $xhr 'GET''http://coffeescript.org/robots.txt''' return consolelog errdatastatusxhrxhrreadyStatexhrstatus if err consolelog status consolelog data p = $liveTag'p'pp = $all'p'consolelog plengthconsolelog pplength#console.log $.one('body').append($.create('p')) consolelog $create'p'appendTo$one'body'consolelog plength # will be +1 consolelog pplength # will be same as before
View Source
Commented code is in ./coffee/