火狐拖拽事件无响应_调整Firefox的“响应性”配置设置
火狐拖拽事件无响应
Have you ever noticed that sometimes Firefox isn’t very responsive while loading a page? As a frequent StumbleUpon user, this behavior grates on my nerves so I went looking for a solution.
您是否曾经注意到,有时Firefox在加载页面时React不佳? 作为StumbleUpon的频繁用户,这种行为使我感到不安,因此我一直在寻找解决方案。
When Firefox is loading a page it uses one of two modes: There’s a high priority mode that doesn’t pay as much attention to your mouse and keyboard, but loads the page faster. There’s also a lower priority mode that interrupts the parser more often to respond to input events. It’s even documented at Mozillazine.
当Firefox加载页面时,它使用以下两种模式之一:一种高优先级模式,它不会过多地关注您的鼠标和键盘,但是会更快地加载页面。 还有一个较低优先级的模式,该模式会更频繁地中断解析器以响应输入事件。 甚至在Mozillazine中都有记录 。
What we can do is tweak the amount of time before Firefox switches from lower priority mode back into high priority mode.
我们要做的是调整Firefox从低优先级模式切换回高优先级模式之前的时间。
Type about:config into the Firefox address bar, and then filter by the following:
在Firefox地址栏中键入about:config ,然后按以下内容进行过滤:
content.switch.threshold
content.switch.threshold
Most likely the key doesn’t exist yet, so you’ll have to set it by right-clicking in the empty area and selecting New \ Integer. Use these values when prompted:
**很可能还不存在,因此您必须通过右键单击空白区域并选择New \ Integer来进行设置。 在提示时使用以下值:
-
Key Name: content.switch.threshold
**名称 :content.switch.threshold
-
Key Value: 1000000
关键值 :1000000
The default value is 750000, or 3/4 of a second. The more time that you tell Firefox to wait before resuming high priority mode, the more responsive the application will feel… but it will obviously take a little longer to load the pages. You could reverse this if you were more worried about speeding up page load time.
默认值为750000,即3/4秒。 您告诉Firefox在恢复高优先级模式之前等待的时间越长,应用程序的响应速度就会越快……但是,显然,加载页面所需的时间更长。 如果您更担心加快页面加载时间,则可以扭转这种情况。
Note that this setting only works if you haven’t changed content.interrupt.parsing to false.
请注意,仅当您未将content.interrupt.parsing更改为false时,此设置才有效。
翻译自: https://www.howtogeek.com/howto/internet/firefox/tweak-firefoxs-responsiveness-config-setting/
火狐拖拽事件无响应