Fabian Lange
2006-Dec-12 14:24 UTC
prevent chain-loading of css&javascript and make it parallel
Hi, just got the latest beta from firebug.. and well I was suprised. I had a look at my pages and also at http://script.aculo.us/ and was finding that my browser does not load css&js in parallel. It seems not 100% reproducable, but in general it looks as if one js file is loaded after another. Same applies for css. That results in having a unnecessary long waiting time. I guess it is because the browser cannot parse them parallel, but overwrites declarations of previous css when loading the next. I think same is with javascript. Are there good ideas how to get around this, when you know that it is safe to load javascripts in parallel? Br Fabian PS: The firebug 1.0 beta is really nice ______________________________________________________________________________ "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America''s Cup-Yacht! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Thomas Fuchs
2006-Dec-12 14:40 UTC
Re: prevent chain-loading of css&javascript and make it parallel
That''s by design, so you can load in JavaScript files that depend on each other (for example, effects.js from script.aculo.us needs stuff from prototype.js). I can imagine you can construct something that loads js files in parallel by using Ajax calls, but I doubt you get any real speedup from this. Best, Thomas Am 12.12.2006 um 15:24 schrieb Fabian Lange:> > Hi, > just got the latest beta from firebug.. and well I was suprised. I > had a look at my pages and also at http://script.aculo.us/ and was > finding that my browser does not load css&js in parallel. > It seems not 100% reproducable, but in general it looks as if one > js file is loaded after another. Same applies for css. > That results in having a unnecessary long waiting time. > I guess it is because the browser cannot parse them parallel, but > overwrites declarations of previous css when loading the next. I > think same is with javascript. > Are there good ideas how to get around this, when you know that it > is safe to load javascripts in parallel? > > Br > Fabian > > PS: The firebug 1.0 beta is really nice > ______________________________________________________________________ > ________ > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: > www.deutschlandsegelt.de > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America''s > Cup-Yacht! > > > >-- Thomas Fuchs wollzelle http://www.wollzelle.com questentier on AIM madrobby on irc.freenode.net http://www.fluxiom.com :: online digital asset management http://script.aculo.us :: Web 2.0 JavaScript http://mir.aculo.us :: Where no web developer has gone before --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---