Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any Firefox option or an extension that keeps local copies of popular JavaScript libraries such as jQuery and Mootools, and does a trick under the hood to make websites use them instead of downloading these files over and over again from different domains?

share|improve this question

2 Answers 2

There are many versions of both of these libraries around. And just because a site references jquery.js, the file could contain anything. It could be an entirely different set of javascript.

It could also contain a standard copy of the jquery library, but with custom additions.

So in order for an extension to know whether it was safe to use the local copy rather than the one to be downloaded, it would have to first download it and compare it to the local copy.

This would make the extension useless...

share|improve this answer
This is valid for generic filenames, but what about for example self-hosted Wordpress blogs, which seem to host them with a pattern and version numbers: /wp-includes/js/jquery/jquery.js?ver=1.3.2 – screener Oct 28 '11 at 4:38
This is precisely (one of) the issues that Google wants to solve with Dart - having consistent client side libaries that local code can access. Yeah, it looks like wordpress might do a special rewrite with the jquery includes to make sure a particular version is pulled in - but this would be limited to sites only. wordpress installs don't pay attention to the ver= part. Look: – Paul Oct 28 '11 at 5:00
There's now an extension for that: – screener 2 days ago
up vote 0 down vote accepted

There's now a Firefox extension that does exactly what I wanted, at least for connections to CDNs:


Local emulation of Content Delivery Networks.

Decentraleyes emulates these networks locally by intercepting requests, finding the resource you need and injecting it into the environment. All of this happens instantaneously, automatically and no prior configuration is required.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.