简体   繁体   中英

Firefox javascript becomes unresponsive warning

I realized that the firefox browser gives warning when we make a ajax call which takes more time to respond/the function in javascript takes more time to complete its execution.

I read in an article it is due to the properties in firefox. Something like it should wait only these many seconds for an javascript to complete its execution.

Can anyone clearly explain me about that? How can we solve this via program?

You can modify the length of time Firefox waits for script execution by:

  1. Typing about:config into the address bar
  2. Searching for the dom.max_script_run_time preference name.
  3. Setting the dom.max_script_run_time value to something other than the default. (currently 10 seconds, at least in Firefox 30.0)

However, I'd strongly suggest you look at the script you're executing for further problems first. Note that 10 seconds is not how long it takes for the script to run, but rather how long the script has been unresponsive for - much worse.

More information on how the dom.max_script_run_time parameter works can be found here: http://kb.mozillazine.org/Dom.max_script_run_time

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM