Closed Vaviloff closed 10 years ago
Well, as it turns out, it is possible. You just have to set page.onResourceRequested function that will be executed in the Phantomjs context.
page.setFn('onResourceRequested', function(requestData, request){
request.abort();
});
Sometimes it is necessary to not load some urls. Here's a quote from official PhantomJS example to do it.
However, in node-phantom it's not possible to abort request at the time, is it?