Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript not loading in the webview for android
    text
    copied!<p>I am trying to write an hybrid app for android. In this app I am trying to load jquery and bunch of other frameworks. All the javascripts are located in the assets folder. Now the problem is that when I try to load any javascript I dont see any exception, but the javascript does not load. </p> <p>If I give the path of an invalid file or scheme, I immediately see a console message and log</p> <p> </p> <pre><code> &lt;script type="text/javascript" charset="utf-8" src="jquery.js" /&gt; &lt;script type="text/javascript" charset="utf-8" src="js/underscore.js" /&gt; &lt;script type="text/javascript" charset="utf-8" src="js/backbone.js" /&gt; &lt;script type="text/javascript" charset="utf-8" src="js/app.js" /&gt; &lt;/head&gt; &lt;body&gt; page loaded... &lt;script&gt; console.log('-----loading-----'); </code></pre> <p>I never see page loaded or ---loading---</p> <p>But if i remove js includes i see the script being executed. What could be going wrong</p> <pre><code>&lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; &lt;meta name="viewport" content="width=320; user-scalable=no" /&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt; &lt;script type="text/javascript" src="some.js"/&gt; &lt;script type="text/javascript" src="some2.js"/&gt; &lt;/head&gt; &lt;body&gt; page loaded... &lt;script&gt; console.log('-----loading-----'); &lt;/script&gt; &lt;/body&gt; </code></pre> <p>where some.js console.log("!");</p> <p>and some2.js console.log("2");</p> <p>I only see ! never 2</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload