From 3cac52675445cf9f9b1851187fcc4f09a7990168 Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Wed, 21 Jan 2026 19:16:40 +0100 Subject: [PATCH 1/2] Adding sequential resource loading to edit.htm --- wled00/data/edit.htm | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/wled00/data/edit.htm b/wled00/data/edit.htm index d295639f55..bebc028f9c 100644 --- a/wled00/data/edit.htm +++ b/wled00/data/edit.htm @@ -5,12 +5,6 @@ - - - - - - - +
From c960ade500308d19572b9b4a16899688863720bc Mon Sep 17 00:00:00 2001 From: Damian Schneider Date: Wed, 21 Jan 2026 19:33:54 +0100 Subject: [PATCH 2/2] fixing duplicate callbacks on errors as suggested by the rabbit --- wled00/data/edit.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/data/edit.htm b/wled00/data/edit.htm index bebc028f9c..2606e4e583 100644 --- a/wled00/data/edit.htm +++ b/wled00/data/edit.htm @@ -111,7 +111,7 @@ function loadFiles(u, r, cb) { var s = document.createElement('script'), // set 1s timeout if retry count is less than 10 (i.e. for Ace scripts) - tm = r < 10 ? setTimeout(() => { s.onload=null; cb(); }, 1000) : 0; + tm = r < 10 ? setTimeout(() => { s.onload=s.onerror=null; cb(); }, 1000) : 0; s.src = u; s.onload = () => { clearTimeout(tm); cb(); }; s.onerror = () => {