I am trying to create a custom build of jQuery to be used on mobile
sites, the goal is to make the size of the library as small as
possible, by ripping out the parts I don't need, i.e. fx.js,
offset.js, dimensions.js. Now I'm trying to create a custom Sizzle
build, one that only supports document.querySelectorAll (mobile WebKit
supports it, and I don't care about other browsers at the moment).
Unfortunately, Sizzle seems to be written in such a way that it often
falls back to using "manual" selectors so I haven't found a way to
remove any sizeable portion of it without breaking stuff. I'm not
really a specialist in selector engines so I'm wondering if the
approach I'm taking is meaningful at all. Can it be done without
breaking significant functionality?