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) => {
|
||||
performance.mark("discourse-booted");
|
||||
const config = e.detail;
|
||||
const app = require(`${config.modulePrefix}/app`)["default"].create(config);
|
||||
app.start();
|
||||
|
Loading…
Reference in New Issue
Block a user