How can I lazy load service library?

I am making an ionic/vue app with ibeacon support.

the code is working, but not finding beacons

I don’t KNOW this is a problem
but the library is loaded when the app loads (and gets a connection to cordova)
but the component that USES the library is 4 router changes away

the dom the library connects to is completely different than at load time

so… is there a way to do a lazy load/import of a service function library)

use the import() function to load the library, same as lazy loading components

well, that didn’t actually work… and require didn’t work…