Add async parsing option.

In my testing, the major time sink is parsing. This commit adds a setTimeout() around parsing
of each item so control can return to the browser. This increases the total time it takes to finish
a screenshot but will not freeze the browser when it does. This is a good option when e.g. doing
error reporting, where you might not want to freeze the browser while sending debugging information
back to your server.
This commit is contained in:
MoyuScript
2013-09-18 09:54:20 +08:00
parent d65ec39003
commit 11417a16f0
4 changed files with 274 additions and 221 deletions

File diff suppressed because one or more lines are too long