Hi,I am working on a web application to be deployed soon,this web application has adopted plenty of ajax characteristics,which means a lot of javascripts have been included,which reach a sum of about 200k bytes of all.Therefore,at first time when the web application is loaded,the users will have to wait for a long time which is not friendly, Is there exist any scheme to accelerate the page''s display?For example,is it able to display partof the page layout first with the javascripts are downloaded simultaneously? Thanks all! Freddy -- Posted via http://www.ruby-forum.com/.
I usually make a different Javascript for every page I have. I have this Rails helper that has my template auto load only the Javascript files named after my page. That way the user will only have to download a JS file if the page requires it and if the user already has that JS file, they shouldn''t have to download it again. http://inquirylabs.com/blog2005/?p=35 On 7/27/06, Freddy <Freddy@gmail.com> wrote:> Hi,I am working on a web application to be deployed soon,this web > application has adopted plenty of ajax characteristics,which means a lot > of javascripts have been included,which reach a sum of about 200k bytes > of all.Therefore,at first time when the web application is loaded,the > users will have to wait for a long time which is not friendly, Is there > exist any scheme to accelerate the page''s display?For example,is it able > to display partof the page layout first with the javascripts are > downloaded simultaneously? Thanks all! > > Freddy > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Rick Martinez Director of Technology Complexity Gaming
On 27 Jul 2006, at 07:03, Freddy wrote:> Hi,I am working on a web application to be deployed soon,this web > application has adopted plenty of ajax characteristics,which means > a lot > of javascripts have been included,which reach a sum of about 200k > bytes > of all.Therefore,at first time when the web application is loaded,the > users will have to wait for a long time which is not friendly, Is > there > exist any scheme to accelerate the page''s display?For example,is it > able > to display partof the page layout first with the javascripts are > downloaded simultaneously? Thanks all!Use mod_deflate on your webserver, it will compress the page before sending it, should shave off quite a few seconds if the total size (and not the processing) is your bottleneck. The Javascripts will be cached by the browser after the first load, so it should be a one time operation anyway. Best regards Peter De Berdt -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/cfefa390/attachment.html