PhantomJS not properly loading javascripts #11529
Comments
This is pretty unlikely. I'd suggest inspecting the page HTML ( |
I thought that as well, but I also tried printing out the HTML. Adding <!DOCTYPE html><html class="launching"><head>
<title>Server Density - Login</title>
<base href="/">
<link rel="stylesheet" href="/assets/css/html5-boilerplate.css">
<link rel="stylesheet" href="/assets/css/icon-font.css">
<link rel="stylesheet" href="/assets/css/style.css">
<script src="/?bootstrap"></script>
<script data-main="/app/compiled/bootstrap" src="/assets/js/libs/require/require.js"></script>
</head>
<body>
<noscript>
<p>server density requires you to have javascript enabled to get all the awesome. please turn it on to use the application</p>
</noscript>
<div id="app" class="clearfix">
<div id="currentView" class="clearfix"></div>
</div>
</body></html> |
OK. Next guess: the version of WebKit we are using may be too old to recognize |
Was thinking that as well, so I found this line of code being called from here. Both in the ScriptElement class. |
Sorry to resurrect an old thread (it is still open). I think I am running into this issue on 2.1.1. I haven't reliably recreated it from a scratch setup yet, but it seems like it may be related to including javascript via protocol-relative URLs. E.g. //my.domain/myJavascript.js Edit: seems that I posted too soon. The issue isn't in phantomjs, but in another tool I am using (Behat), trying to use phantomjs. |
Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
This affects both 1.9.0 and 1.9.1. I have not tried master.
I have noticed that many pure javascript sites aren't loaded properly in PhantomJS (https://www.imprev.net/ui/#login and https://login.serverdensity.io/, to name just a couple). I quickly looked into it and it seems PhantomJS isn't loading all javascripts on the page. In the case of serverdensity, it actually doesn't load a single one.
Example script:
The output from this script is:
Looking at the source, there's nothing to suggest that they shouldn't load. So the question is, why aren't they?
The text was updated successfully, but these errors were encountered: