Hello,
I have some graphics which are specific to an extension. So I'd like to use dontPreloadImage to avoid loading it if the extension isn't used. However, I'm not sure how it works. The doc only says to do
But where to put this? In the js constructor? And how does the loading occurs, is it automatic whenever the image is displayed? How do I test that the image isn't preloaded?
Thanks.
I have some graphics which are specific to an extension. So I'd like to use dontPreloadImage to avoid loading it if the extension isn't used. However, I'm not sure how it works. The doc only says to do
Code: Select all
this.dontPreloadImage( 'cards.png' );
Thanks.