What I want to do:
- make a plugin
- that tries to load a script from a remote location (to save bandwidth)
- but if it fails loads a remote version instead
I think this sort of thing is fairly common... I've seen it done with Google Analytics a lot. Even C2 does it with jQ. I'm asking for my Playtomic plugin.
The problem:
To include the local version of the script during export I set dependency in edittime.js's GetPluginSettings (I copied the method from the Facebook plugin). However this also automatically adds it to the HTML therefore making the remote loading useless!
What would help me is a way to include a script during export, but NOT automatically add a <script> tag for it to the html.
I couldn't find anything like this using the search or manual.
Ideas, suggestions, etc please <img src="smileys/smiley1.gif" border="0" align="middle">