This commit is contained in:
Viet An
2026-07-09 17:22:19 +07:00
parent 9b77644e8d
commit 22854bb4fb
9 changed files with 104 additions and 77 deletions

View File

@@ -0,0 +1,12 @@
export default defineNuxtPlugin(async () => {
const loadTime = performance.now();
const minDuration = 2000;
if (loadTime < minDuration) {
await new Promise((r) => setTimeout(r, minDuration - loadTime));
}
// nuxtApp.hook('app:mounted', () => {
// console.log('app.mount() completed at', performance.now())
// });
});