javascript - PhantomJS.Org takes too long to respond against my phantom js script? -
i have simple script got "getting started phantomjs" book.
var system = require('system'); var url = system.args[1]; var page = require('webpage').create(); page.open(url, function(status) { if ( status === "success" ) { console.log("page loaded."); phantom.exit(0); } });
when run command "phantomjs chapter2.js http://www.google.com" correct response of "page loaded". same facebook.com
it's funny because book told me run "phantomjs chapter2.js http://www.phantomjs.org", hang on me minute before script stops , goes command prompt without printing back.
is problem on end internet connection?
the www
subdomain of phantom.js
dead end: http://isup.me/www.phantomjs.org
remove subdomain , it'll work expected: http://isup.me/phantomjs.org
Comments
Post a Comment