From 34674501c3efa6137fca42c619cba8b1dfd1ec4b Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Thu, 8 Feb 2024 19:33:08 +0100 Subject: [PATCH] Remove throttling from UI --- wled00/data/index.js | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/wled00/data/index.js b/wled00/data/index.js index 668abce1e..d42cef2aa 100644 --- a/wled00/data/index.js +++ b/wled00/data/index.js @@ -277,25 +277,17 @@ function onLoad() pmtLS = localStorage.getItem('wledPmt'); // Load initial data - // Once we figure out why ESP8266 sometimes corrupts JSON responses if they are made in quick succession - // we can remove all setTimeout() throttling loadPalettes(()=>{ - setTimeout(()=>{ // ESP8266 can't handle quick requests - // fill effect extra data array - loadFXData(()=>{ - setTimeout(()=>{ // ESP8266 can't handle quick requests - // load and populate effects - loadFX(()=>{ - setTimeout(()=>{ // ESP8266 can't handle quick requests - loadPalettesData(()=>{ - requestJson();// will load presets and create WS - if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},100); - }); - },50); - }); - },50); + // fill effect extra data array + loadFXData(()=>{ + // load and populate effects + loadFX(()=>{ + loadPalettesData(()=>{ + requestJson();// will load presets and create WS + if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},50); + }); }); - },50); + }); }); resetUtil();