Hi guys i need to add a jquery library in my widget plugin , i think i should add this to plugin not nopcommere itself but the problem is i want to use this plugin also in my theme and other widgets , and if i add this library to my theme or other widget plugins it will be duplicate javascript code
what is the best practice for adding library to frontend ?