Re: Intent to prototype and ship: lazy load images

2020-02-18 Thread Hiroyuki Birchill Ikezoe
On Sat, Feb 15, 2020 at 4:48 AM Boris Zbarsky  wrote:

> On 2/6/20 5:26 PM, Hiroyuki Birchill Ikezoe wrote:
> > Is this feature enabled by default in sandboxed iframes?: no, as of now
> > there is no proposed flag to enable this feature in sandboxed iframes.
>
> But is it disabled by default there?  I would assume not, unless it's
> specifically gated on sandboxing state...
>

To be more precise, lazy loading is disabled in documents where scripting
is disabled.
Though I don't know the exact conditions where scripting is disabled, by
default lazy loading is disabled without `allow-scripts` keyword.

hiro
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to prototype and ship: lazy load images

2020-02-14 Thread Hiroyuki Birchill Ikezoe
On Tue, Feb 11, 2020 at 12:43 AM Anne van Kesteren  wrote:

> On Mon, Feb 10, 2020 at 3:22 PM Hiroyuki Birchill Ikezoe
>  wrote:
> > Is this feature enabled by default in sandboxed iframes?: no, as of now
> > there is no proposed flag to enable this feature in sandboxed iframes.
>
> I think the answer to this question is more complicated. It's disabled
> if scripts are disabled, but if scripts are enabled, image lazy load
> is enabled, right?
>

Right. Thanks for the clarification.

hiro
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to prototype and ship: lazy load images

2020-02-14 Thread Boris Zbarsky

On 2/6/20 5:26 PM, Hiroyuki Birchill Ikezoe wrote:

Is this feature enabled by default in sandboxed iframes?: no, as of now
there is no proposed flag to enable this feature in sandboxed iframes.


But is it disabled by default there?  I would assume not, unless it's 
specifically gated on sandboxing state...


-Boris
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Intent to prototype and ship: lazy load images

2020-02-14 Thread Anne van Kesteren
On Mon, Feb 10, 2020 at 3:22 PM Hiroyuki Birchill Ikezoe
 wrote:
> Is this feature enabled by default in sandboxed iframes?: no, as of now
> there is no proposed flag to enable this feature in sandboxed iframes.

I think the answer to this question is more complicated. It's disabled
if scripts are disabled, but if scripts are enabled, image lazy load
is enabled, right?
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Intent to prototype and ship: lazy load images

2020-02-10 Thread Hiroyuki Birchill Ikezoe
In Firefox 75, I intend to turn lazy load images on by default.

Summary: lazy load images improves initial page load performance by
deferring loading images which are out of viewport, it also reduces network
traffic.

Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1542784

Standard: https://github.com/whatwg/html/pull/3752

Platform coverage: all

Preference: dom.image-lazy-loading.enabled

Devtools bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1611387

Other browsers: Chrome has shipped it since 76. WebKit is now implementing
it [1]

web-platform-tests:
https://wpt.fyi/results/loading/lazyload?label=experimental&label=master&aligned

Secure contexts: this feature is not restricted to secure contexts. I don't
see any reasons to restrict it in secure contexts. If you have concerns,
please let me know.

Is this feature enabled by default in sandboxed iframes?: no, as of now
there is no proposed flag to enable this feature in sandboxed iframes.

Bug to turn on by default:
https://bugzilla.mozilla.org/show_bug.cgi?id=1613611

hiro

[1] https://bugs.webkit.org/show_bug.cgi?id=200764
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform