3 ms·
Not an answer to your question, but somewhat related: I recently worked on an automated thumbnail generator which used PhantomJS (headless Webkit browser) to l
by oxplot 10y ago
Not an answer to your question, but somewhat related:
I recently worked on an automated thumbnail generator which used PhantomJS (headless Webkit browser) to load some 20000 pages and screenshot them. The problem was that these pages had javascript code that would start loading resources long after `onload` and friends had fired. So the way I implemented onload was to monitor all resources and if there was delay of few seconds after the last one had finished, I'd consider the page loaded. It turned out to be quite robust.