diff options
author | dan <dan.abramov@gmail.com> | 2024-03-08 04:13:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 04:13:36 +0000 |
commit | c8e0fa9c97d276a917996627f163c267783e9411 (patch) | |
tree | fe986ba203db59a0f58b10b13f8416e04a1f0d29 | |
parent | 1cf49517b517e8bee90bf937d033dff35cc9f690 (diff) | |
download | voidsky-c8e0fa9c97d276a917996627f163c267783e9411.tar.zst |
Mark bundle start time on web (#3147)
* Mark bundle start time on web * TS
-rw-r--r-- | index.web.js | 2 | ||||
-rw-r--r-- | src/platform/markBundleStartTime.web.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/index.web.js b/index.web.js index 4dee831cd..962373451 100644 --- a/index.web.js +++ b/index.web.js @@ -1,3 +1,5 @@ +import '#/platform/markBundleStartTime' + import '#/platform/polyfills' import {registerRootComponent} from 'expo' import {doPolyfill} from '#/lib/api/api-polyfill' diff --git a/src/platform/markBundleStartTime.web.ts b/src/platform/markBundleStartTime.web.ts new file mode 100644 index 000000000..cd64c9f1c --- /dev/null +++ b/src/platform/markBundleStartTime.web.ts @@ -0,0 +1,2 @@ +// @ts-ignore Web-only. On RN, this is set by Metro. +window.__BUNDLE_START_TIME__ = performance.now() |