Skip to content
This repository was archived by the owner on Oct 17, 2025. It is now read-only.

Commit 17449b3

Browse files
author
Schalk Neethling
authored
fix(performance): only send loading mark inside loading event (#1010)
1 parent 97c0b46 commit 17449b3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/editor-libs/perf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
* events during document loading. These will then be made
1616
* available in performance tools, and beaconed to GA
1717
*/
18-
postToKuma({ markName: 'interactive-editor-loading' });
19-
2018
document.addEventListener('readystatechange', function(event) {
2119
switch (event.target.readyState) {
20+
case 'loading':
21+
postToKuma({ markName: 'interactive-editor-loading' });
22+
break;
2223
case 'interactive':
2324
postToKuma({
2425
markName: 'interactive-editor-interactive',

0 commit comments

Comments
 (0)