Re: [qooxdoo-devel] preloading all png images on application init

2015-12-04 Thread Dietrich Streifert
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.ma

Re: [qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread voger
May I suggest a little ugly hack I am using? main:function(){ //things this.__preloadImages(); //more things }, /** * ugly hack to preload some images since * qooxdoo doesn't do that * * @asset(qssite/loader/ajax-loader.gif) * @asset(qssite/loader/working.gif) * @asset(qssite/dock/doc

Re: [qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread 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.$$resourc

Re: [qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread 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.$$resourc

Re: [qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread Dietrich Streifert
Hi Cajus, I'm currently using a theme based on John Spackmans aristo theme which uses png images as radio and check box decoration, allowing a large number of button states. A lot of combinations like focused, read only, disabled, checked, invalid which tries to exactly show the button state t

Re: [qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread Cajus Pollmeier
Hi Dietrich, is it an option to use the image map feature? http://manual.qooxdoo.org/4.1/pages/tool/generator/generator_config_ref .html#combine-images That only loads one single image in all browsers. Although we've switched to icon fonts now ;-) Cheers, Cajus Am Donnerstag, den 03.12.2015, 1

[qooxdoo-devel] preloading all png images on application init

2015-12-03 Thread Dietrich Streifert
Hi all! I would need to preload all images which are defined by the asset markup like /** * @asset(myapp/*) */ at application startup. I'm trying to get rid of the background image flicker in chrome when changing the background image on mouse actions within a label. Any help would be gre