I have an application.js asset and an editor.js asset. They both have the dependency of the jquery.batchImageLoad.js library.
application.js is available throughout the website, but editor.js is available only on some pages, but they sometimes meet.
The thing is that jquery.batchImageLoad.js library gets loaded twice, which is not exactly desirable.
Is there any way to keep these from colliding except having to change the actual javascript?