add timer info

Signed-off-by: vladmandic <mandic00@live.com>
This commit is contained in:
vladmandic
2026-04-23 12:49:41 +02:00
parent 21b34a6fa7
commit 40e550f1c3
23 changed files with 194 additions and 76 deletions
+4 -1
View File
@@ -235,6 +235,7 @@ async function bindImageViewer() {
}
async function initImageViewer() {
const t0 = performance.now();
// main elements
const modal = document.createElement('div');
modal.id = 'lightboxModal';
@@ -341,7 +342,9 @@ async function initImageViewer() {
modal.append(modalExif);
gradioApp().appendChild(modal);
log('initImageViewer');
const t1 = performance.now();
log('initImageViewer', Math.round(t1 - t0));
timer('initImageViewer', t1 - t0);
}
onAfterUiUpdate(bindImageViewer);