Thomas Fuchs
Hi, I'm Thomas Fuchs. I'm the author of Zepto.js, of script.aculo.us, and I'm a Ruby on Rails core alumnus. With Amy Hoy I'm building cheerful software, like Noko Time Tracking and Every Time Zone and write books like Retinafy.me.
   Want me to speak at your conference? Contact me!

Zepto.js 0.1.1: JS-based inheritance, .load, .is, $(document).ready, $.os

November 1st, 2010

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:

– Switch to JavaScript inheritance-based extension mechanism; this makes Zepto faster and allows plugins to be loaded lazily
– Add .load(url [, callback]) and .load('url #fragment-selector' [, callback]) to load HTML fragments with an Ajax call
– Add $(document).ready(callback) for calling methods when the DOMContentLoaded event fires
– Add .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.

Also new:

– Add a $.os object for info on which browser/platform is used. For example, on an iPad, $.os.ipad and $.os.ios is true, plus the current iOS version will be found in the $.os.version property

Thanks to the contributors and the community feedback for Zepto.js.

Grab your copy from the Zepto.js homepage or use the source on GitHub.

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!