From fddcbeee3dd4ccddf638e8ab29ea5cf455585175 Mon Sep 17 00:00:00 2001 From: cesare Date: Tue, 13 Dec 2022 19:50:17 +0100 Subject: [PATCH] aggiunta misura del tempo di caricamento delle cantiche --- js/cesareBrowse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/cesareBrowse.js b/js/cesareBrowse.js index 3177e1a..0f31c4c 100644 --- a/js/cesareBrowse.js +++ b/js/cesareBrowse.js @@ -32,7 +32,8 @@ $(document).ready(function() { let mappedElement = ''; hideMinimap(); - + + const start = performance.now(); showCantica('Inferno') $('#cantica2').css({ 'opacity': 0.40 }); @@ -43,6 +44,8 @@ $(document).ready(function() { showCantica('Purgatorio') showCantica('Paradiso') + const end = performance.now(); + console.log(`Load cantica time: ${end - start} ms`); $("[data-cg]").hover(function() {