[Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-20 Thread Michael Dale
So I was running into the problem of localizing the messages for the add_media_wizard & mv_embed & associated libraries. So I have taken a first pass at witting the script server (that I had previously described) http://tinyurl.com/ae44vd Below is a description of how it works. the code is in

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-20 Thread Brion Vibber
On 2/20/09 12:32 PM, Michael Dale wrote: > So I was running into the problem of localizing the messages for the > add_media_wizard& mv_embed& associated libraries. So I have taken a > first pass at witting the script server (that I had previously > described) http://tinyurl.com/ae44vd Below is a

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-20 Thread Gregory Maxwell
On Fri, Feb 20, 2009 at 5:51 PM, Brion Vibber wrote: [snip] > On the other hand we don't want to delay those interactions; it's > probably cheaper to load 15 messages in one chunk after showing the > wizard rather than waiting until each tab click to load them 5 at a time. > > But that can be up t

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-23 Thread Michael Dale
... I was looking at commons upload form JavaScript load profile is like a long waterfall or rather a steep river :( http://metavid.org/promo/round_trips.png Would be much nicer do 1 or 2 request instead of 27 ... true... a lot are gadgets and what not.. but even on a not logged in Main page vi

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-23 Thread Brion Vibber
On 2/23/09 11:35 AM, Michael Dale wrote: *snip* > Like the localization msg system this logic is hampered by the fact the > script loader is /optional/. If we required the script loader it could > be simpler: *nod* I don't think it's really feasible to make use of the loader optional and still ke

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-23 Thread Aryeh Gregor
On Mon, Feb 23, 2009 at 2:35 PM, Michael Dale wrote: > ... I was looking at commons upload form JavaScript load profile is like > a long waterfall or rather a steep river :( > http://metavid.org/promo/round_trips.png Note that this should be dramatically improved in next-gen browsers like Firefox

Re: [Wikitech-l] Javascript localization, minify, gzip & cache forever

2009-02-24 Thread Michael Dale
Yes performance does improve a great deal as the browsers pre-fetch in parallel. Its definitely a long overdue feature for browsers :) But it will still should be more efficient / faster to do one request instead of many in parallel. Even with parallel fetching the default in the Firefox night