[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-dev
Subject:    Re: [webkit-dev] Lazy loading
From:       Scott Little <sclittle () chromium ! org>
Date:       2019-10-29 19:27:30
Message-ID: CACBp5rVkkc5UpVe60AZCVhTNRoRfw7LsKCXwpPZU+i4Jux+Bzg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> Are there plans to better specify CSS background images lazy loading?

There aren't currently any plans to add lazy CSS background images to a
spec, or at least no plans that I know of right now.

Right now in Chromium, the default lazy loading behavior is essentially
based on whether or not the user has opted into Lite Mode (aka Data Saver),
so we've mostly been treating CSS background image lazy loading as kind of
an extra intervention or optimization to help these Lite Mode users save
more data.

Chromium code currently decides whether or not to lazily load CSS
background images according to the default lazy loading behavior, but if in
the future Chromium ever turns on automatic lazy loading as the default
behavior for non-Lite Mode users, we'd first either want lazy CSS
background images to be part of the spec, or we'd separate out lazy CSS
background images to be restricted to Lite Mode.

Cheers,
- Scott

On Mon, Oct 28, 2019 at 8:08 PM Rob Buis <rbuis@igalia.com> wrote:

> > Regarding lazily loading CSS background images, Chromium determines whether
> > or not to lazily load CSS background images according to the default lazy
> > loading behavior, and isn't directly controlled by the "loading" attribute.
> > There are some heuristics involved, e.g. background images inside an iframe
> > that was itself lazily loaded are loaded eagerly for performance reasons,
> > but those heuristics are just part of the default lazy loading behavior.
>
> Scott, thanks for the clarification! Are there plans to better specify CSS
> background images lazy loading?
>
> Regards,
>
> Rob.
>

[Attachment #5 (text/html)]

<div dir="ltr">&gt; Are there plans to better specify CSS background images lazy \
loading?<div><br></div><div>There aren&#39;t currently any plans to add lazy CSS \
background images to a spec, or at least no plans that I know of right \
now.</div><div><br></div><div>Right now in  Chromium, the default lazy loading \
behavior is essentially based on whether or not the user has opted into Lite Mode \
(aka Data Saver), so we&#39;ve mostly been treating CSS background image lazy loading \
as kind of an extra intervention or optimization to help these Lite Mode users save \
more data.</div><div><br></div><div>Chromium code currently decides whether or not to \
lazily load CSS background images according to the default lazy loading behavior, but \
if in the future Chromium ever turns on automatic lazy loading as the default \
behavior for non-Lite Mode users, we&#39;d first either want lazy CSS background \
images to be part of the spec, or we&#39;d separate out lazy CSS background images to \
be restricted to Lite Mode.</div><div><br></div><div>Cheers,</div><div>- \
Scott</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On \
Mon, Oct 28, 2019 at 8:08 PM Rob Buis &lt;<a href="mailto:rbuis@igalia.com" \
target="_blank">rbuis@igalia.com</a>&gt; wrote:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">  

    
  
  <div bgcolor="#FFFFFF">
    <pre style="white-space:pre-wrap;color:rgb(0,0,0);font-style:normal;font-variant-c \
aps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;t \
ext-transform:none;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none">&gt; \
Regarding lazily loading CSS background images, Chromium determines whether &gt; or \
not to lazily load CSS background images according to the default lazy &gt; loading \
behavior, and isn&#39;t directly controlled by the &quot;loading&quot; attribute. \
&gt; There are some heuristics involved, e.g. background images inside an iframe &gt; \
that was itself lazily loaded are loaded eagerly for performance reasons, &gt; but \
those heuristics are just part of the default lazy loading behavior. </pre>
    <p>Scott, thanks for the clarification! Are there plans to better
      specify CSS background images lazy loading?</p>
    <p>Regards,</p>
    <p>Rob.<br>
    </p>
  </div>

</blockquote></div>



_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic