jQuery.load()run after the content of
<script>is completely downloaded?
If in case, there is a
<script>in the document that will inject another
load()run after after the content of the 2nd script is downloaded or it will run after the original, non-dynamic content is loaded?
The example for the 2) question is like that:
<html> <head> <script src="myscrip1.js"></script> <script> $(document).load( myscript2.functionA ); </script> </head> </html>
Where myscript.js will inject myscript2.js into the dom. in which myscript2.js include the function myscript2.functionA
Obviously, I want to run myscript2.functionA after myscript2.js is loaded completely.