IE not blocking javascript
        Posted  
        
            by Corey Hart
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Corey Hart
        
        
        
        Published on 2010-06-08T19:03:01Z
        Indexed on 
            2010/06/08
            19:22 UTC
        
        
        Read the original article
        Hit count: 324
        
JavaScript
|internet-explorer
It seems that IE8 defers javascript, but also doesn't block. I've setup a test environment to prove this. Here's the html page(replace 192.168.1.xxx with your server):
<html>
<head>
 <title>IE Pains</title>
 <script type='text/javascript' src='http://192.168.1.xxx/ietest/js.js'></script>
 <script type='text/javascript'>
  scream('hello world');
 </script>
</head>
<body>
</body>
</html>
And the js File:
function scream( str ) {
 alert( str );
}
Am I seeing this wrong, or does IE not recognize the scream function because it hasn't finished loading js.js?
© Stack Overflow or respective owner