I am developing a chrome extension that uses jQuery / Zepto in content script. Now the extension is designed to run on every website, which means that a custom instance of jQuery / Zepto opens on each tab.
Is there a way to share a jQuery / Zepto object between different content scripts?
I know that content scripts can communicate with the background of the script. I was hoping the background script would gain access to the jQuery object and return a link to it for each content script. But I realized that only JSON messages can be transmitted between content and background scripts.
Is there any way to achieve what I want?
google-chrome-extension
Himanshu P
source share