So the usual way is to define a plugin/hotspot element, either in the xml or through javascript code via addhotspot/addlayer/addplugin.
In the case of custom developed js plugins we then need to set the hotspot.url / plugin.url to point to the file where the plugins code is written.
My question is, would it be somehow possible to load the plugins code as a direct reference? Since js plugins begin like this:
I tried to include it in the same js file and simply put
but of course that doesn't work (didn't expect it to, *g*).
But is it possible somehow, another way? Just to clarify, the whole point would be to be able to bundle js files before runtime, and reduce the number of requests needed to make.
Cheers!