Hi Bernard, Do you mean you would like to track the loading progression of the image bundle from the server to the client, or that you would like to give feedback to the user of the image loading progression as they load the application?
In all likelihood, you mean the first case, since sending feedback on image bundle loading progression to the user would lead to a bit of a strange experience as all the images would be placed into the application once the bundle has finished being transferred over the wire. If you specifically want to track the time it takes to transfer the image bundle over the wire from the server to the client, you could write a simple JS script to print a timestamp and then make an XHR for the generate <md5>.cache.png image bundle file progression of getting the image bundle across the wire. Once you receive the response back you could log another timestamp and compare the difference between the two to get a rough idea of how long it took to pick up the image bundle. This test wouldn't really be representative of what your users might experience as they load your application since that would depend on where they are located relative to your server, etc... As a general rule, you'll want to serve up the least amount of image bundles needed to load your application, since the HTTP roundtrip needed to pick up the image resources is much more costly than the size of the payload in the roundtrip. There is an upper limit on how big the bundle can get, typically dictated by how the browser will react to such a large payload. This is particularly the case for IE6, if I remember correctly. I haven't seen any issues reported about browsers not being able to handle large image bundle sizes for any other supported browser. How big are your individual image bundles getting? Hope that helps, -Sumit Chandel On Wed, Sep 24, 2008 at 10:09 PM, bernard <[EMAIL PROTECTED]> wrote: > > For performance reasons, my application needs to have multiple > ImageBundles. I want to load them on demand according to user > interactions. > > Is there a way to observe the loading progression of an ImageBundle? > Or to know when it is available to the client? > > Thanks. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
