I think you'll get minimal performance gains due to the 2-http-connection-per-browser-instance thing as specified in the w3c spec. You'll only get 2 scripts downloading at a time. I suppose you could spread it against multiple subdomains which gets around the limit.
As for your actual question, I can't speak for core but it seems like a fairly minimal modification to make. Patch for adding extra option to disable evalScripts on Ajax.Request in 1.5.1_rc4 986 += , 987 + skipEvalResponse: false 1120 + if(!this.options['skipEvalResponse']) I tried to test it but I confess I haven't played around with returning script blocks in content and thus wasn't able to figure out what I needed to set on the header. Gareth On 4/30/07, AMA3 <[EMAIL PROTECTED]> wrote: > > > Hello, > > In trying to speed up the overall download for a page, I decided to > create a queue of Ajax.Request objects to asynchronous load a set of > javascript files. Due to dependencies between the files, I want to > execute them synchronously... the only reason to use Ajax.Request is > to download multiple scripts at once instead of waiting for one to > complete before the next can begin downloading. > > Due to Ajax.Request.evalResponse(), the scripts are executing as soon > as they are downloaded--sometimes in the wrong order. It would be > most helpful if there was an option to Ajax.Options to either disable > evalResponse() or replace it with a custom method. > > If that's not acceptable, I'd like to know the best way to disable > evalResponse() on a per-request basis. I'd like a solution that > should remain forward-compatible with future releases. > > I'm a big fan of Prototype and recommend it whole-heartedly in the > Ajax class that I teach. Without this obstacle I would love it even > more :-) > > Suggestions/comments/promises greatly appreciated! > > Peace, > AMA3 > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
