I am new to using phantomjs
, and I just tried to load and render a page using the example given on the website:
var url='http://www.example.com'
var page = require('webpage').create();
page.open(url, function() {
page.render('example.png');
phantom.exit();
});
This takes over one minute to run, as reported by time
.
I am running on a modern laptop (Thinkpad X1 Carbon) with a Gigabit Ethernet connection, and loading the same page in Firefox takes under a second.
Any hints for finding the root cause of this, or common possible causes of this?
Update: I tried commenting out page.render
but the running time is very similar, so I do not think it's a rendering speed issue.