Forum Moderators: open
In that external .js file I am invoking one method.That method calls ajax code.
Here the problem is in my html I am using that .js file more than one time.
for example like this
<html>
<body>
<script type="text/javascript" src="some.js"></script>
--- some other tags here ----
<script type="text/javascript" src="some.js"></script>
</body>
</html>
Tell me the execution of this.
Will it waits until the first script overs or will it call that external script and process immediate tags and second script.
Tell the flow of this one.
Thanks.
I do not know for sure, but if I had to guess I'd say that both scripts are executed independently as separate processes. That being said, I do not think the second one "waits" until the first one has finished.