/src/main/java/org/htmlunit/html/HtmlPage.java
final char scriptCode = response.getContentAschar( scriptEncoding, ignoreBom && getWebClient( ).getBrowserVersion( ).hasFeature( JS_IGNORES_UTF8_BOM_SOMETIMES) ) ;
final String scriptCode = response.getContentAsString ( scriptEncoding, ignoreBom && getWebClient ( ) .getBrowserVersion ( ) .hasFeature ( JS_IGNORES_UTF8_BOM_SOMETIMES ) ) ;
ignoreBom = true; } else { ignoreBom = true; scriptEncoding = contentCharset; } <extra_id_0> if (null != scriptCode) { final AbstractJavaScriptEngine<?> javaScriptEngine = client.getJavaScriptEngine(); final Object script = javaScriptEngine.compile(this, scriptCode, url.toExternalForm(), 1); if (script != null && cache.cacheIfPossible(request, response, script)) { return script; }