-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify why user turning off abort is undesirable #2
Comments
Really good call to get a discussion for more feedback around why the analytics provider turn off might be undesirable initially. Just my thoughts on this one: FCP as a baselineFCP is considered and recognized by the web development/experience community as one valid and stable metric to evaluate the experience effect initial content rendering performance has on the user. Not connecting the metric to analytics provider load signalI can think of two points that for me would make much sense on why we do not want to go that way initially.
The example that comes to my mind is that in the case that we add this new metric with the Reporting API capabilities, we can provide the web developer the data in the following flow:
The bottom line, and the point that I would like to get through with this example is that without involving the analytics vendors at all, we give the target audience (developer, experience engineer, marketeer etc), a way to query this metric and use it to get something actionable. |
IME multiple analytics / performance tool providers on the same page isn't unusual There were/are similar issues to this with ResourceTiming – where New Relic was calling clearResourceTimings when the buffer was full and so other products couldn't collect them This was the issue – https://discuss.newrelic.com/t/do-not-clear-the-resource-timing-buffer/54771 – not sure if it still applies, @nicjansma might know more |
From an analytics provider POV, yeah, we encounter issues like this from time to time, where multiple third-party scripts / analytics are all playing in the same playground and step on each others' toes. In cases where there's a shared global "something" -- like the ResourceTiming buffer and It's certainly possible to do this right even if there are multiple analytics scripts, but it just takes a bit more work for the site owner to know which analytics to prioritize or have the abandonment signal to wait for. I'd be in favor of optionally allowing for abandonment to be defined by the page, via some signal like an API or JavaScript variable to be read, in addition to automagic reporting based on a specific phase being reached (e.g. FCP being proposed). |
I thought about this idea too, but it's not clear from the explainer why this is considered a worse alternative to FCP? If the intention is to let analytics providers report their metrics, wouldn't letting them specify when the load is no longer an abort be a reasonable solution? There are some potential problems with this:
Requires intentional annotation in order to get any valuable data, whereas the FCP approach does not. In particular, I'm not sure if reporting everything as an abort as the no-op is reasonable from a performance standpoint...
There can be multiple analytics providers or multiple performance aggregators for the same webpage, so it could be problematic if the first one says that the load is no longer an abort, and incentivizes moving the aggregation earlier. Not sure how common this is.
The text was updated successfully, but these errors were encountered: