No, you should not use jQuery in Chrome extensions.
jQuery is quite large, and the vast majority of it supports other browsers, that you just don't need to worry about in the extension.
For example, you do not need the Sizzle engine at all (use document.querySelector ), although it is really valuable in IE6-8, you do not need standard event handlers, because you will not support IE or Opera at all (use element.addEventListener ). You don't need jQuery delayed when Chrome supports Promise natively . You do not need $.ajax if you have fetch . There are many more .
In addition, jQuery does not support many modern functions, for example, you cannot use passive event handlers or load scripts asynchronously (it does not even support defer ).
As the currently selected answer shows, jQuery is expensively injected. This is worth optimizing right down to what you need with minimal code.
As a rule, with any extension of the toolkit (jQuery, Underscore, etc.) they always start without them and only bring them if you think you need them. If you find that you need infrastructure, consider more modern ones that use new features (which you can rely on to be present in Chrome), rather than those designed to standardize code between browsers. Think about what you need from the framework - if it's just what you know and how jQuery is, then it's good (getting to know you can be an excuse if it will be useful for you or your team to learn new things), but you should know this costs injection and execution.
jQuery is an exceptionally successful toolkit with broad support, it just isn't suitable for an extension only for Chrome.
Keith
source share