mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add a discourse-booted performance mark (#17162)
This is useful when analysing performance in developer tools, and can also be used for analytics plugins
This commit is contained in:
parent
a5552321cf
commit
d5743c0326
@ -1,4 +1,5 @@
|
|||||||
document.addEventListener("discourse-booted", (e) => {
|
document.addEventListener("discourse-booted", (e) => {
|
||||||
|
performance.mark("discourse-booted");
|
||||||
const config = e.detail;
|
const config = e.detail;
|
||||||
const app = require(`${config.modulePrefix}/app`)["default"].create(config);
|
const app = require(`${config.modulePrefix}/app`)["default"].create(config);
|
||||||
app.start();
|
app.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user