mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
ec416a2990
Based on a patch that Dão Gottwald <dao+bmo@mozilla.com> wrote. We used to preload about:newtab as soon as a tab had finished being opened, which meant that the first opened tab was _never_ preloaded, and that we risked janking the browser immediately after the user opened a new tab (which is, arguably, the worst time to do it, since the user is probably about to navigate that tab somewhere). This patch makes it so that about:newtab is preloaded after: 1) 1 second of user inactivity, and 2) When we have at least 40ms of idle time to spend in an idle callback. The 1s and 40ms thresholds were chosen arbitrarily, and we might tune them over time. MozReview-Commit-ID: J5xkPQvCdW6 --HG-- extra : rebase_source : 51aed2f47ee5c6a68d04036d0bdc9e6357a5fc8d |
||
---|---|---|
.. | ||
components | ||
content | ||
crashreporter | ||
forgetaboutsite | ||
library | ||
locales | ||
modules | ||
mozapps | ||
pluginproblem | ||
profile | ||
system | ||
themes | ||
xre | ||
.eslintrc.js | ||
moz.build | ||
moz.configure | ||
nss.configure | ||
toolkit.mozbuild |