thanks for the info! especially the note about -PRETTY output (I should have thought of that!)
On Feb 3, 5:41 am, Eric Ayers <zun...@google.com> wrote: > On Mon, Feb 2, 2009 at 9:40 PM, Steven <steven.pul...@gmail.com> wrote: > > > I have a question regarding using the GWT to create gadgets for > > iGoogle. > > > I have > > seenhttp://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis... > > which details how you can now use the legacy gadgets API with GWT to > > create gadgets. > > > I also noticed that the way the GWT seems to achieve cross browser > > compatibility is to create multiple javascript files and dynamically > > include the right ones. > > > I am worried about the performance hit of hosting uncached files on my > > webserver. > > > My question is this: does the GWT cache requests to these javascript > > files? > > No, GWT doesn't actually cache them. It routes the request for your > compiled resources through a proxy which is supposed to cache them > (for up to 1 hour, I believe) > > > Historically my process has been to have the entiregadgetinline as > > type "html" and where necessary only include external resources after > > using a call to _IG_GetCachedUrl so that they are proxies by google. > > > So to clarify, my question is: When GWT spans it's code across > > multiple files does it use _IG_GetCachedUrl to cache the request of > > external javascript - or if not does it at least do something to > > ensure that the javascript will not be requested (from my webserver) > > every time a user loads thegadget. > > Turn on pretty mode when you compile, and then look at the generated > .gadget.xml file (add -style PRETTY to the command line) and you'll > see that this is exactly the strategy used in the compiledgadget. > > > just curious because on of the things I love about the wholegadget > > space is that it has let me develop interesting projects in a way that > > doesn't put much load on my puny server. > > There are things you need to watch out for. Make sure you load your > .css files through a <script> take in your module definition > (.gwt.xml). Also, images could be an issue, but you can translate the > urls to images to go through the proxy with the same _IG_GetCachedUrl > call manually, or you can use the new GadgetImage class (in the next > public update, due out very shortly). > > > > > thanks! > > -- > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---