Hi all,
I have implemented a solution which is a combination of Johns and Vogers
recommendation. I've implemented a general purpose mixin which I'm
currently using by adding it to qx.application.Standalone and calling
the method preloadImagesResources at the end of
qx.application.Standalone.main:
// overridden
main : function()
{
this.base(arguments);
// preload decoration
this.preloadImageResources("decoration");
}
This pre loads everything having the string "decoration" in its resource
path and being a png or gif. It takes care of combined resources. Here
is the gist:
https://gist.github.com/level420/e1d70de25889609c1f56
The method relies on the existence of the qx.$$resources array having
the structure as of today, gracefully stopping if not.
You may use it in every other class as well, as it does not assume to be
mixed in into qx.application.Standalone, but retrieving the root widget
via qx.core.Init.getApplication().getRoot().
And yes! The chrome flicker on check button and radio button state
changes stopped!
Thank for your help!
Regards
Dietrich
Am 03.12.2015 um 15:43 schrieb John Spackman:
> Hi Dietrich
>
> If you’ve got a list of what those asset uris are, you can use
> qx.util.ResourceManager.toUri() to convert each one into a full url which you
> can then pass to qx.io.ImageLoader.load to do the preloading.
>
> If you don’t have a list of assets uris you can get them through
> qx.$$resources, which is technically undocumented but unfortunately
> qx.util.ResourceManager does not expose the list of uris.
>
> Regards
> John
>
>
>
>
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel