Hi all.
I'm working on a project which will load content dynamically from
files developed by an external team.
These files can include scripting.
* If the script is included in the loaded content, the `evalScripts`
will suffice.
* If the script is referenced from the loaded content (<script
src="blah.js" ...>), the `evalScripts` will suffice.
But there's a possibility which isn't covered: an external file which
loads a library and uses it. These are the cases:
1. External library, "internal" use:
<script src="blah.js"></script>
<script>
use_some_function_from_blah();
</script>
As the loading of `blah.js` is asynchronous, the next script element
will try to use an undefined function.
2. External library, external use:
<script src="blah.js"></script>
<script src="use_some_function_from_blah.js"></script>
As the loading of both scripts is asynchronous, the second one could
be started before the neccessary functions are available.
Any idea or workaround?
TIA.
--
Choan
<http://choangalvez.nom.es/>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/