Restrict time given for JavaScript evaluation to max. 2 seconds.
Possible improvement: alert the user of the timeout and offer the option to continue or abort execution.
Edited by Harri Porten
Possible improvement: alert the user of the timeout and offer the option to continue or abort execution.