Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

just wondering if it possible to build the jQuery library with just a selection of components:

e.g. without Effects or Manipulation?


Sounds like it would be mission impossible!! :)

Thanks everyone!


Reason:

I read somewhere a long time ago about jquery being modular since version 1.4.x . Not being able to find anything on jQuery.com and elsewhere I gave up and came here.

Like always the answers are always helpful, even though a question doesn't have an answer.


Any ideas? Thanks guys :)

like image 638
RadiantHex Avatar asked Dec 22 '22 21:12

RadiantHex


2 Answers

Not without modifying the source yourself. (which I recommend against)

John Resig WAS going to do this because of jQuery Mobile but they decided on one large bundle. Just use theversion hosted by Google's CDN and you shouldn't have to worry too much about load speed, chances are it'll already be in the user's cache.

like image 143
Marko Avatar answered Dec 24 '22 11:12

Marko


I can't find the duplicate right now but the bottom line is no, it's not possible without huge effort; but it doesn't matter, because it's loaded just once, and if there were any serious performance advantages to gain, the founding fathers jQuery developers would have created a provision for it.

like image 37
Pekka Avatar answered Dec 24 '22 11:12

Pekka