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:
David Taylor 2022-06-20 19:39:39 +01:00 committed by GitHub
parent a5552321cf
commit d5743c0326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();