-
Notifications
You must be signed in to change notification settings - Fork 114
URL Metric mutation helpers should be exposed in initialize
args to match finalize
args
#1930
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
Comments
Embed Optimizer can be updated to use performance/plugins/embed-optimizer/detect.js Lines 51 to 89 in 47eef00
We can instead just call |
As noted in #1893 (comment), I think we should consider eliminating the |
Uh oh!
There was an error while loading. Please reload this page.
As discussed in #1928 (comment):
This becomes more important when considering that if the browser is asked to do too much work during
pagehide
it may terminate execution of the function. See #1928. So the earlier we amend the URL Metric data the better.These are the relevant properties of
FinalizeArgs
:performance/plugins/optimization-detective/types.ts
Lines 77 to 83 in 47eef00
We need to include them in
InitializeArgs
.Then we'll need to move the client extension initialization logic down to occur after:
performance/plugins/optimization-detective/detect.js
Lines 682 to 689 in 47eef00
Aside:
Let's add logging for each extension that is loaded.
We should also remove this old log entry (cf. d2e266d):
performance/plugins/optimization-detective/detect.js
Line 680 in 47eef00
Lastly, let's move this line up to a more logical spot to right after it is last used (see 4025e61, although it should be placed right after
disconnectIntersectionObserver()
):performance/plugins/optimization-detective/detect.js
Lines 888 to 889 in 47eef00
Finally, we should deprecate
finalize
because we cannot reliably compress the URL Metric data atpagehide
.The text was updated successfully, but these errors were encountered: