... and Zepto too

Recently, the Zepto.js library added a Deferred module.

This is wonderful, because the absence of a Deferred module was what was keeping Rdbhost from using Zepto.

Now, the Rdbhost JavaScript library will work as a Zepto plugin, in addition to its jQuery support. To use it with Zepto, you need the zepto.js library and also the deferred.js and callback.js modules.

<script src="http://www.rdbhost.com/vendor/zepto/1.1/zepto.js"></script>
<script src="http://www.rdbhost.com/vendor/zepto/1.1/callback.js"></script>
<script src="http://www.rdbhost.com/vendor/zepto/1.1/deferred.js"></script>
<script src="http://www.rdbhost.com/vendor/rdbhost/1.1/jquery.rdbhost.js"> </script>

The principal benefit to using Zepto in lieu of jQuery is reduced page weight. The zepto.js, callback.js and deferred.js files weigh in at a combined 63K. jQuery.js is 263K. These are unminified sizes.

The complete test suite passes with Zepto, in Chrome and Firefox.

See Test Suite
and The Library

comments powered by Disqus