From 78314ae95098990d99b1dbe13c427a5cd4dda8a2 Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 8 Nov 2026 16:04:52 -0500 Subject: [PATCH] Change from foreach to map for better performance --- js/comics.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/comics.js b/js/comics.js index c74ca49..5946bc4 100644 --- a/js/comics.js +++ b/js/comics.js @@ -102,9 +102,7 @@ function getFolderContents() { redirectToLogin(); return; } - data.contents.forEach(function(entry, index) { - $("#list").append(entry.div); - }); + $("#list").html(data.contents.map(e => e.div).join("")); toastr.remove(); }, error : function(xhr, stat, err) {