轻量级JS AJAX库 [英] Lightweight JS AJAX library

查看:231
本文介绍了轻量级JS AJAX库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友和我有一个网站(www.rosasecta.com)。它采用了大量的Ajax,但它是全手工制作,这真是丑陋不堪,挖通。我们要切换到JS库,但JQuery的,原型和Dojo都大。我们只是想要一个小型,紧凑的图书馆,可以做AJAX干净,一些基本的DOM selecters。任何人都可以推荐一个?

My friend and I have a site (www.rosasecta.com). It uses a lot of Ajax, but it's all by hand, and it's really ugly and hard to dig through. We want to switch to a JS library, but JQuery, Prototype, and Dojo are to large. We just want a small, compact library that can do AJAX cleanly and some basic DOM selecters. Can anybody recommend one?

在此先感谢。

推荐答案

的jQuery的选择器部分,道场(以及其他一些框架)实际上是作为一个独立的库,滋滋声选择库:

The selector portion of jQuery, dojo (and some of the other frameworks) is actually available as a separate library, the Sizzle Selector library:

http://sizzlejs.com/

,赞声称只根据自己的网站4KB精缩和gzip压缩的。

Sizzle purports to be only 4kb minified and gzipped according to their site.

不过,阿贾克斯也一样,我觉得一个定制的jQuery,只有最小的位可能是最好的完整的软件包。一些其他的库,如道场有正是你想要的功能,建立他们,太方法。

However, with ajax too, I think a customized jquery with only the smallest bits may be the best "complete package". Some of the other libraries like dojo have methods of building them with exactly the features you want, too.

默认jQuery的精缩+ gzip压缩的只有19KB。我认为核心构建可以做下来只有12KB。

The default jquery minified+gzipped is only 19kb. I think a core build can be done down to only 12kb.

这篇关于轻量级JS AJAX库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆