speed: committing a failing experiment of concat vs slice
[jquery.git] / src / ajax.js
index 9a84302..adae6ae 100644 (file)
@@ -296,7 +296,9 @@ jQuery.extend({
 
                                                // Handle memory leak in IE
                                                script.onload = script.onreadystatechange = null;
-                                               head.removeChild( script );
+                                               if ( head && script.parentNode ) {
+                                                       head.removeChild( script );
+                                               }
                                        }
                                };
                        }