chrome extension: sharing an object between content scripts and background script
问题 I am developing a chrome extension that uses jQuery/Zepto in the content script. Now, the extension is meant to run on every website, which means a copy of jQuery/Zepto is loaded on each tab the user opens. Is there a way to share the jQuery/Zepto object between the various content scripts? I know content scripts can communicate with the background script. I was hoping to be able to let the background script have access to the jQuery object and return a reference to it, to each of the content