From 22fbd9371e60c49ad806903272352ec76a0a20a2 Mon Sep 17 00:00:00 2001 From: cesare Date: Wed, 19 Mar 2025 13:02:49 +0100 Subject: [PATCH] ottimizzazione showcanto --- js/browseMgr_5.1.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/browseMgr_5.1.js b/js/browseMgr_5.1.js index b7cc71c..96984eb 100644 --- a/js/browseMgr_5.1.js +++ b/js/browseMgr_5.1.js @@ -2093,8 +2093,9 @@ $(document).ready(function() { var ultimaFormaCanto; let numeroPeriodo = 1; showingComments = false; - - formecantica.map(function(item) { + let initmap=850*(parseInt(canto)-1) + var subformecantica=formecantica.slice(initmap) + subformecantica.map(function(item) { formaItem = item.split("_"); var sentenceid = idcantica + "_" + formaItem[1] + "_s_" + formaItem[5] if (formaItem[1] == canto) {