In this snippet
<script src="takes very long to download" type="text/javascript">
alert('hi');
</script>
Lets assume that script takes a very long time to download. Is there a chance that alert "hi" could fire before the download of script has completed? If yes, which browsers could do so?
Note that I have placed "alert('hi')" inside the same tag on purpose.
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…