Right now, this is semi possible, if you build jquery with
the ajax, ajax/xhr, ajax/script, and ajax/jsonp modules.
However, even if you choose these modules only, you still must
include the selector module, despite it not being used in any of these
modules (except jquery.load, which could be excluded).
If you use something like react, it can essentially remove the need
for jquery selectors, but you still need ajax functionality from a
third party library - an ajax-only jquery without any selectors would
If you include the jquery sizzle selectors, this is an about 18kb
minified, and has to be processed by mobile devices, resulting in a
performance hit on mobile, in particular on slower devices with a
The qSA-only wrapper isn't that big at all, so this is more of an
anal-retentive thing than any kind of necessity. If you really want it
to happen though, you could give it a try. Note that the ajax .load()
signature requires selectors and depends on ajax, so there is a
dependency that needs to be handled. You'd need to explicitly
in order to avoid selectors being pulled in.
We're working on a lightweight alternative to $.ajax called $.xhr
that won't have a dependency on much of anything, but the API will be