Kodi Community Forum
Solved loading of widgets - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Solved loading of widgets (/showthread.php?tid=307793)



loading of widgets - smitchell6879 - 2017-02-22

So I have one widget that takes about 4 seconds to load ... its not that bad but it annoys me... I tried visible tag so it is only visible once it is filled but I am guessing that it is only looked at once because it will not load with just that and so I added Container($PARAM[list_id]).IsUpdating as a visible tag and now you see the extra part but before it is loaded as I was with out any visible tag... so how can I hid it but it still load once it is filled?


Not Sure if I am doing it 100% right but I can live with it now.


RE: loading of widgets - jurialmunkey - 2017-02-22

Yeah the container needs to be visible to load.

I think allowhiddenfocus usually works as a workaround --
Code:
<visible allowhiddenfocus="true">!Container($PARAM[list_id]).IsUpdating</visible>

Alternatively, you could use a conditional animation fade
Code:
<animation effect="fade" start="100" end="0" time="200" condition="!Container($PARAM[list_id]).IsUpdating">Conditional</animation>