I'm building a Chrome extension that adds a devtools panel. I'd like to use jQuery within the panel to build and modify the contents (of the panel, not the page), rather than using plain JavaScript.
Within devtools.html I've added references to a local jQuery file and the devtools.js:
<script src="jquery-2.2.4.min.js"></script>
<script src="devtools.js"></script>
When looking in the network tab I can see that both files were loaded correctly (and devtools.js is executed without problems.)
However, window.jQuery (or $) is never made available in devtools.js, or from the console.
I've also tried adding this in manifest.json without any success:
"background": {
"scripts": ["background.js", "jquery-2.2.4.min.js"]
}
What am I missing? Shouldn't I be able to use jQuery here?