Scripts and Styles like bootstrap and font awesome are used on hundreds/thousands of plugins.
Whats the best way to check for this? If two scripts aren't registered with exact same name they'll both get loaded.
This is most frustrating when a plugin includes font-icons from ico-moon or somewhere similar that change the icon codes so all the icons will get loaded with the wrong images.
Is there a good way to remove adding scripts/styles? :
My guess would be something like using
wp_script_is() and checking an array of files that would match ones like bootstrap and font awesome, but that sounds pretty heavy/ tedious.
If there isn't a way to ensure this doesn't happen, what is the best practices for naming your scripts?
Sorry if this is repeat, it seems like something that's probably been asked just couldn't find it.