From 8308a21cb19841737c438de3d46bfa740dd6ce90 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 12 Jan 2024 12:37:33 +0000 Subject: [PATCH] [nav_timing] client-side timing as an extension --- ext/nav_timing/info.php | 16 ++++++++++++++++ ext/nav_timing/init.js | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 ext/nav_timing/info.php create mode 100644 ext/nav_timing/init.js diff --git a/ext/nav_timing/info.php b/ext/nav_timing/info.php new file mode 100644 index 00000000..a4bb46ea --- /dev/null +++ b/ext/nav_timing/info.php @@ -0,0 +1,16 @@ + { + list.getEntries().forEach((entry) => { + shm_log("timing", {"v": 2, ...entry.toJSON()}); + }); +}); +observer.observe({ entryTypes: ["navigation"] });