/src/main/java/org/htmlunit/html/ScriptElementSupport.java
doc.setCurrentScript ( null ) ;
final Document doc = win.getDocument(); try { doc.setCurrentScript(element.getScriptableObject()); result = page.loadExternalJavaScriptFile(src, charset); } finally { <extra_id_0> } if (result == JavaScriptLoadResult.SUCCESS) { executeEvent(element, Event.TYPE_LOAD); } else if (result == JavaScriptLoadResult.DOWNLOAD_ERROR) { executeEvent(element, Event.TYPE_ERROR);