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