diff options
author | Nicholas Ray <nray@wikimedia.org> | 2020-10-08 10:10:34 -0600 |
---|---|---|
committer | Nicholas Ray <nray@wikimedia.org> | 2020-10-09 10:56:19 -0600 |
commit | ee22af6ef7f5b6be750c0819764caa1900fe361f (patch) | |
tree | cb6b552762aa8bbb12230fd13ef8b7bc73619cd6 /resources/src/mediawiki.notification.convertmessagebox.js | |
parent | d14ce36a8c6578fca8a38d010a6167d73849cffe (diff) | |
download | mediawikicore-ee22af6ef7f5b6be750c0819764caa1900fe361f.tar.gz mediawikicore-ee22af6ef7f5b6be750c0819764caa1900fe361f.zip |
Add client-side performance metrics for legacy search
As part of comparing Vue search with legacy search, we need to track how
long it takes a keypress to load and render search results for legacy
search (Vue search will perform the same metrics).
This commit adds the following metrics which will only be used in our
synthetic tests. We are not collecting RUM metrics at this time.
Marks:
* mwVectorLegacySearchLoadStart: Marks start of loading the search
module.
* mwVectorLegacySearchLoadEnd: Marks the end of loading the search
module.
Measures:
* mwVectorLegacySearchLoadStartToLoadEnd: Measures the time it takes to
load the search module.
* mwVectorLegacySearchLoadStartToFirstRender: Measures the time it takes
from the start of loading the search module to the first render of results.
* mwVectorLegacySearchQueryToRender: Measures the time it takes from
the start of the fetch to the render of search results.
Additional changes:
* Fixed a bug in loadSearchModule that added an unneeded `focusin` event
listener when the input has already received focus.
Bug: T251544
Change-Id: I0fa6b8904bd43c87a68e9161f00d686a0e588966
Diffstat (limited to 'resources/src/mediawiki.notification.convertmessagebox.js')
0 files changed, 0 insertions, 0 deletions