Maybe you can simply fake the download progress by calculating an average 
download time for a given client and store that average download time on 
the client in local storage / cookie. Create a timestamp as soon as the 
host HTML page loads and create a second timestamp in onModuleLoad(). The 
diff should roughly be the download time of app.nocache.js and 
<permutation>.cache.html. If the diff is too small then the permutation has 
been loaded from cache and you should not use it for the average 
calculation.
The first time when the client has no average download time it can only 
show a "please wait" loading indicator but the second time (e.g. after an 
app update or the client has cleaned up his cache) you could fake download 
percentages on the client using the estimated download time.

Not perfect but maybe a lot easier to implement and still good enough.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to