mirror of
https://github.com/wled/WLED.git
synced 2025-07-21 09:46:32 +00:00
Remove throttling from UI
This commit is contained in:
parent
f6206d4c30
commit
34674501c3
@ -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(()=>{
|
||||||
setTimeout(()=>{ // ESP8266 can't handle quick requests
|
|
||||||
// load and populate effects
|
// load and populate effects
|
||||||
loadFX(()=>{
|
loadFX(()=>{
|
||||||
setTimeout(()=>{ // ESP8266 can't handle quick requests
|
|
||||||
loadPalettesData(()=>{
|
loadPalettesData(()=>{
|
||||||
requestJson();// will load presets and create WS
|
requestJson();// will load presets and create WS
|
||||||
if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},100);
|
if (cfg.comp.css) setTimeout(()=>{loadSkinCSS('skinCss')},50);
|
||||||
});
|
});
|
||||||
},50);
|
|
||||||
});
|
});
|
||||||
},50);
|
|
||||||
});
|
});
|
||||||
},50);
|
|
||||||
});
|
});
|
||||||
resetUtil();
|
resetUtil();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user