Is it possible to build jQuery with a subset of components? - jQuery

just wondering if you can build a jQuery library with just a set of components :

eg. no effects or manipulation?


It seems like this would be impossible! :)

Thanks everyone!


Cause:

I read somewhere long ago that jquery is modular since version 1.4.x. Unable to find anything on jQuery.com and elsewhere, I gave up and came here.

As always, the answers are always helpful, although the question does not answer.


Any ideas? Thanks guys:)

+4
source share
4 answers

Do not forget to change the source yourself. (which I recommend)

John Resig WAS was going to do this because of jQuery Mobile, but they decided to make one big package. Just use the version hosted on the Google CDN and you don’t need to worry too much about download speed, most likely it will already be in the user cache.

+6
source

I can’t find a duplicate right now, but there isn’t the bottom line, this is impossible without enormous effort; but it doesn’t matter, since it only loads once, and if there were any serious performance advantages, the jQuery fathers would create a reserve for it.

+4
source

I guess it will be possible, but it will take a lot of work. Many of the methods inside the jquery library depend on eachother — it will take several hours and hours of debugging to get the non-localized version. Your best bet is to include everything - in any case, this is not such a big resource.

+1
source

Development time is more important, and the game for this task will be expensive :)

I suggest you use only the one hosted by Google, most of the time it has already been cached in its browsers

My favorite btw version is 1.2.6 and is packaged http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js

+1
source

All Articles