I was just wondering if anyone has tried to put the bootstrap js straight into the host page. It seems like it would reduce the number of http requests in a typical GWT app.
Typical GWT apps have a host page (probably not set to cache forever), which includes the boostrap js (which typically isn't set to cache forever), and the bootstrap page includes your app js (possible multiple js if you use code splitting, and they should cache forever). So, if your cache isn't primed, you have at least 3 requests (host, bootstrap, app). If your cache is primed you get two (304 for host and 304 for bootstrap). If you were to put the boostrap js in the host page, then you'd reduce each of these by 1. Because the bootstrap js is pretty small (6KB for me), it sounds like a good way to reduce requests. Any thoughts? Anyone ever try this? I admit that I haven't tried it yet, but I suspect that copy and paste won't work unless perhaps your host page is sitting in the same directory as your boostrap and app js. -- 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.
