зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1615234 - Make the lazyload pref actually be honored. r=hiro
Right now it only controls the visibility of HTMLImageElement.loading. Differential Revision: https://phabricator.services.mozilla.com/D62723 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
52f4121240
Коммит
112e6c2c9e
|
@ -1250,6 +1250,10 @@ void HTMLImageElement::SetLazyLoading() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!StaticPrefs::dom_image_lazy_loading_enabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// If scripting is disabled don't do lazy load.
|
||||
// https://whatpr.org/html/3752/images.html#updating-the-image-data
|
||||
if (!OwnerDoc()->IsScriptEnabled()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче