Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight JS AJAX library [closed]

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?

Thanks in advance.

like image 777
Hussain Avatar asked Nov 29 '22 19:11

Hussain


1 Answers

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/

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

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.

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

like image 122
Crast Avatar answered Dec 05 '22 06:12

Crast