Remove throttling from UI

This commit is contained in:
Blaz Kristan 2024-02-08 19:33:08 +01:00
parent f6206d4c30
commit 34674501c3

View File

@ -277,25 +277,17 @@ function onLoad()
pmtLS = localStorage.getItem('wledPmt'); pmtLS = localStorage.getItem('wledPmt');
// Load initial data // 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(()=>{ loadPalettes(()=>{
setTimeout(()=>{ // ESP8266 can't handle quick requests // fill effect extra data array
// fill effect extra data array loadFXData(()=>{
loadFXData(()=>{ // load and populate effects
setTimeout(()=>{ // ESP8266 can't handle quick requests loadFX(()=>{
// load and populate effects loadPalettesData(()=>{
loadFX(()=>{ requestJson();// will load presets and create WS
setTimeout(()=>{ // ESP8266 can't handle quick requests if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},50);
loadPalettesData(()=>{ });
requestJson();// will load presets and create WS
if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},100);
});
},50);
});
},50);
}); });
},50); });
}); });
resetUtil(); resetUtil();