Which version of PhantomJS are you using? Tip: run 'phantomjs --version'. 1.5.0
What steps will reproduce the problem? 1. call render(output, function(){console.log(0)}) 2. get the callback function called
What is the expected output? What do you see instead?
Calling function passed as callback, displaying 0 in the console.
Which operating system are you using?
Any.
Did you use binary PhantomJS or did you compile it from source?
Binary and compiled.
Please provide any additional information below.
It would be nice to have a possibility to pass callback function to render() and get it called after the rendering is complete.
Comment #1
Posted on May 22, 2012 by Quick RabbitUnfortunately this can't be implemented at all due to the technical difficulties (with the current backend). Rendering is a synchronous process, it will block everything until it completes. Therefore, there is no need for such a callback.
Comment #2
Posted on Mar 16, 2013 by Happy HorseThis issue has been moved to GitHub: https://github.com/ariya/phantomjs/issues/10552
Status: WontFix
Labels:
Type-Defect
Priority-Medium