New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 623010 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

FR: Add onVisibleLoad() event

Project Member Reported by uenke@google.com, Jun 24 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Steps to reproduce the problem:
In order to optimise the order of loading resources, it would be helpful to have a JavaScript event that fires when the initially visible part of the page has been loaded/rendered.

What is the expected behavior?

What went wrong?
(This is not a bug report, but I did not find an option to flag this as a feature request.)

Did this work before? N/A 

Chrome version: 51.0.2704.103  Channel: n/a
OS Version: OS X 10.11.5
Flash Version: Shockwave Flash 22.0 r0
 
Components: -Blink Blink>Loader
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 24 2016

Labels: Hotlist-Google
Cc: ashej...@chromium.org
Status: Untriaged (was: Unconfirmed)
Marking the above issue as Untriaged as this is a new feature request.

Dev team will take a call on the above issue.

Thank you!
Cc: kenjibaheux@chromium.org esprehn@chromium.org ojan@chromium.org
Status: Available (was: Untriaged)
CC'ing some folks who might be interested in giving input on this request.
Project Member

Comment 5 by sheriffbot@chromium.org, Jun 26 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 6 by ojan@chromium.org, Jun 26 2017

Cc: tdres...@chromium.org
Owner: panicker@chromium.org
Status: Assigned (was: Untriaged)
Adding some other people who might be interesting this. panicker, is this an area you're pursuing with paint timing?

Comment 7 by panicker@google.com, Jun 26 2017

Could you elaborate more on how would developers use this signal?
eg. as a replacement for DCL for fetching JS or ordering certain fetches etc. ?


Comment 8 by uenke@google.com, Jun 27 2017

Hi – yes, that's the idea: I sometimes audit web sites and see that the developers try to defer certain resources until it makes sense to load them, but they fail for lack of fitting events. I am thinking of an event after which any loading will not delay the fetching of resources needed for the rendering of the visible part of the page. By this, I mean what ends up being in view, not necessarily below-the-fold parts that influence the layout computation. But I guess any addition in this direction should improve the available means to prioritise what's actually visible, while images below the fold, tracking pixels etc. would be deferred.
Cc: igrigo...@chromium.org skyos...@chromium.org
This raises the question of whether or not developers should ever use PerformanceObserver data to influence page behavior.

I'm inclined to say that they probably shouldn't, which implies that an event would make more sense here, if we decide this is useful.

Would this be much more useful than requestIdleCallback()? Another option would be to ensure that rIC to handles this case appropriately.
FWIW, I think this discussion belongs on WICG and/or GitHub / public-web-perf@ list, such that we can get more eyeballs and input from other vendors.

uenke@ would you be willing to define a crisp use case and publish it on, say, WICG?
BTW this is not about using Performance Observer to decide page behavior -- we should not do that.
I'm interpreting this as exposing new (lifecycle oriented) signals for loading.
+1 for WICG thread.
That's what I thought, regarding PO.
We'd probably want to also expose this signal via PerformanceObserver though, right?
lifecycle events are generally orthogonal to performance measurement, although sites will use it in analytics anyway. we should make sure they are high quality signals.
(we probably don't need parallel signals in PO unless there's a good reason)


Comment 14 by uenke@google.com, Jun 27 2017

As you seem to agree that this rather belongs on discourse.wicg.io, I took a note to make the case there once I get the time and, preferably, have a customer case at hand that would demonstrate the need.

Thanks for your feedback!
Cc: panicker@chromium.org
Components: Blink>PageLifecycle
Owner: ----
Cc: -ashej...@chromium.org

Comment 17 by ojan@chromium.org, Nov 4 2017

Status: WontFix (was: Assigned)
Sounds like this request is moving to wicg, so closing this bug. Please reopen if I misunderstood.

Sign in to add a comment