轻量级高性能的JavaScript框架-Qatrix
Qatrix是一款超轻量级,高性能的JavaScript框架,是社交网站Catfan旗下的开源项目,采用MIT协议授权。
Qatrix is a new kind of JavaScript framework targeting on building up high performance and flexible web application with less code and friendly construction. It`s free and open source.
Qatrix is designed to simplify the script with friendly and easy-to-learn code construction and noticeably increase the performance and efficiency for the development of web application. It included hardware accelerated animation, DOM element selectors, DOM manipulation, event handle, AJAX, cookie and some of useful functions, and incredibly, with only about 5KB gzipped and compressed file size.
Qatrix is also the first complete JavaScript framework supported hardware accelerated animation under CSS3 transition. The Qatrix animation effects is run impressively smoother and faster than other frameworks. And the performance of most common manipulation is higher than other frameworks about 50% on average.
The Qatrix JavaScript is under MIT license. You can freely to use or distribute for your project as long as declaring the original copyright information.
Qatrix经过Gzip压缩后的体积只有5KB,但却包含了完善的元素选择器,DOM处理,事件处理,具备硬件加速特性的动画引擎,AJAX,JSON,Cookie,本地数据存储等60+个满足日常网络应用开发的功能。其中最吸引人的是其内置的动画引擎,是目前首个基于CSS3,具备硬件加速特性的完整JavaScript框架,性能比基于纯JavaScript处理的方式效率提升至少120%以上,能为网页带来极为流畅的动画效果。
Qatrix还具备了良好的数据处理功能,支持JSON的编码和解码,大幅简化各种数据之间的转换,例如可以直接保存数组数据到Cookie,可以直接通过AJAX发送数组数据,AJAX返回的数据也无需手动编码便可直接使用。而且Qatrix一贯以效率为先的原则,在性能提高方面也投入了大量的研究,并且同时在兼容性上也做了不少的处理,目前能兼容IE6+以上等主流浏览器。同时Qatrix API的设计简单友善,基本上都是简单的英语单词,无需学习复杂的概念便能轻松上手(如果学过jQuery的话则更快)。
Qatrix的官方网站文档清晰,每一个功能都带有详细的说明并附上例子,并且还提供了性能比较,JavaScript代码压缩(压缩率比Packer还高)等实用功能。
最新版本:1.1
该版本更新改进了多处代码的性能,以及调整,并且依然保持着轻量级的体积(6KB)。
全新的事件代理处理模式。
多项bug的修复,以及性能改进。
支持AMD loader。
新的$require功能,可异步加载模块以及CSS文件。
新的$template模板渲染引擎,兼容Mustache语法,并且性能超出其它同类的引擎,快500%以上。
官方主页:http://qatrix.com/