I'm using nightmarejs and I have a problem that I don't know how to solve.
I use the instruction goto(URL) followed by the instruction evaluate() in order to perform some operation on the webpage. The DOM is ready after 2-3 seconds but I believe that the instruction goto() waits for the full page download which is very heavy (it takes 6-7 seconds).
Is there a way to tell nightmare to start the evaluate() function as soon as the DOM is ready and NOT when the page is fully loaded?