Files
web/app/plugins/05-artificial-delay.js
2026-07-09 17:22:19 +07:00

13 lines
339 B
JavaScript

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())
// });
});