We just pushed the next beta release of Zepto.js, and we’ve added a lot of stuff, and fixed some bugs on the way:
.load(url [, callback]) and
.load('url #fragment-selector' [, callback]) to load HTML fragments with an Ajax call
$(document).ready(callback) for calling methods when the
DOMContentLoaded event fires
.is(selector) for testing if the first element in the Zepto object matches a given selector
For most cases, these work like the corresponding function calls in jQuery.
- Add a
$.os object for info on which browser/platform is used. For example, on an iPad,
$.os.ios is true, plus the current iOS version will be found in the
Thanks to the contributors and the community feedback for Zepto.js.
We’re still early into development of Zepto.js, but got a cool shout out from Ars Technica here (they’re rolling their own micro-framework for their iPad Reader app, but mention Zepto.js as a great option!).
Have you build anything way cool with Zepto.js? We’d love to showcase/link to your demos and apps from the Zepto.js site!Tweet