It should be possible in Drupal to disable JQuery and all JavaScript features. For admins who either don't want, or don't need the functionality, and are tying to minimize their sites initial page load time (perhaps even during a /. or other high-load event).

If JQuery was made into a core module, it would then also be possible to throttle the module, for a scenario like I've mentioned above. It would also then become easier for contributed modules to release alternate JQuery modules, as the user would just have to disable the core module and enable the contrib library.

-- Robin

Comments

robin monks’s picture

Issue tags: +Performance, +jQuery, +JavaScript

Adding some useful tags...

andreiashu’s picture

+1
In D6 i wanted that the jquery library be loaded directly from google repository. Didn't find an easy way of doing that.

prameya’s picture

i like this idea a lot... in a simple (like many of mine) its just additional http requests and extra load time.

robloach’s picture

hook_js_alter is in Drupal 7 now, so you could essentially change/remove any JavaScript you wanted in contrib. It seems you might be also looking for #91250: JavaScript Patch #4: External Scripts. Either way, it seems to be that this issue is already indirectly fixed.

.....You can also disable JavaScript in your browser pretty easily if you wanted. In Firefox it's in Edit -> Preferences -> Enable JavaScript.

robloach’s picture

Status: Active » Closed (works as designed)

Setting to "by design" because it seems like a "Disable JavaScript" feature should live in contrib instead of core (or just your browser client).