Commit df79081b authored by Scott Little's avatar Scott Little Committed by Commit Bot

LazyLoad: Include automatic lazy loading options in about:flags.

Bug: 937980
Change-Id: I4f6ffcc27f426541f68aef875ae89d4b65d2dd3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1633596
Commit-Queue: Scott Little <sclittle@chromium.org>
Reviewed-by: default avatarrajendrant <rajendrant@chromium.org>
Cr-Commit-Position: refs/heads/master@{#664525}
parent 0eb2b794
......@@ -1020,6 +1020,26 @@ const FeatureEntry::FeatureVariation
base::size(kAutofillUseMobileLabelDisambiguationShowOne), nullptr}};
#endif // defined(OS_ANDROID)
const FeatureEntry::FeatureParam kLazyFrameLoadingAutomatic[] = {
{"automatic-lazy-load-frames-enabled", "true"},
};
const FeatureEntry::FeatureVariation kLazyFrameLoadingVariations[] = {
{"(Automatically lazily load where safe even if not marked "
"'loading=lazy')",
kLazyFrameLoadingAutomatic, base::size(kLazyFrameLoadingAutomatic),
nullptr}};
const FeatureEntry::FeatureParam kLazyImageLoadingAutomatic[] = {
{"automatic-lazy-load-images-enabled", "true"},
};
const FeatureEntry::FeatureVariation kLazyImageLoadingVariations[] = {
{"(Automatically lazily load where safe even if not marked "
"'loading=lazy')",
kLazyImageLoadingAutomatic, base::size(kLazyImageLoadingAutomatic),
nullptr}};
// RECORDING USER METRICS FOR FLAGS:
// -----------------------------------------------------------------------------
// The first line of the entry is the internal name.
......@@ -2952,12 +2972,16 @@ const FeatureEntry kFeatureEntries[] = {
{"enable-lazy-image-loading",
flag_descriptions::kEnableLazyImageLoadingName,
flag_descriptions::kEnableLazyImageLoadingDescription, kOsAll,
FEATURE_VALUE_TYPE(features::kLazyImageLoading)},
FEATURE_WITH_PARAMS_VALUE_TYPE(features::kLazyImageLoading,
kLazyImageLoadingVariations,
"LazyLoad")},
{"enable-lazy-frame-loading",
flag_descriptions::kEnableLazyFrameLoadingName,
flag_descriptions::kEnableLazyFrameLoadingDescription, kOsAll,
FEATURE_VALUE_TYPE(features::kLazyFrameLoading)},
FEATURE_WITH_PARAMS_VALUE_TYPE(features::kLazyFrameLoading,
kLazyFrameLoadingVariations,
"LazyLoad")},
{"autofill-cache-query-responses",
flag_descriptions::kAutofillCacheQueryResponsesName,
......
......@@ -642,12 +642,13 @@ const char kEnableLayoutNGDescription[] =
const char kEnableLazyFrameLoadingName[] = "Enable lazy frame loading";
const char kEnableLazyFrameLoadingDescription[] =
"Defers the loading of certain cross-origin frames until the page is "
"scrolled down near them.";
"Defers the loading of iframes marked with the attribute 'loading=lazy' "
"until the page is scrolled down near them.";
const char kEnableLazyImageLoadingName[] = "Enable lazy image loading";
const char kEnableLazyImageLoadingDescription[] =
"Defers the loading of images until the page is scrolled down near them.";
"Defers the loading of images marked with the attribute 'loading=lazy' "
"until the page is scrolled down near them.";
const char kEnableMacMaterialDesignDownloadShelfName[] =
"Enable Material Design download shelf";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment