How often does a common browser prompt a 'script is taking too long' summary
- 2020-03-30 02:44:01
Chrome: execute over 8 seconds prompt.
Firefox: execution over 10 seconds prompts.
Safari: prompt after 5 seconds of execution.
Opera: no matter how long you execute, you won't be prompted.
Generally speaking, it is best for the user not to run the script more than 100ms. If the processing is too slow, you can consider some alternative means, such as loading to prompt the user.