Hi, I would like to show a progress bar in the browser until my pages load. As my web pages take more that 10 seconds to load, I have decided to show the progres bar. Please help me with your ideas -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 2, 11:05 am, Sudheendra Panganamala <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I would like to show a progress bar in the browser until my pages load. > > As my web pages take more that 10 seconds to load, I have decided to > show the progres bar.Don''t think you can do that on a normal page - rails sends the entire response in one go. If you were loading some piece of content via ajax then you could of course do this. Fred> > Please help me with your ideas > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
You already have one, most browsers have a progress bar to show that the page is loading. How about putting some effort into getting the pages to load quicker? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 2, 11:05 am, Sudheendra Panganamala <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi, > > I would like to show a progress bar in the browser until my pages load. > > As my web pages take more that 10 seconds to load, I have decided to > show the progres bar. > > Please help me with your ideasJavaScript will execute as soon as it is loaded. You might be able to use, or use the ideas at: http://www.seabreezecomputers.com/tips/progress.htm -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> How about putting some effort into getting the pages to load quicker?Exactly my thought. If you want to load something huge (what that could be?), load a really small screen first with some "welcome. please wait" and then make a background call for everything else. But it would definitely be better to lower the request processing time (if it''s the case) or the size of page accessories (if it is). - A
Sudheendra Panganamala wrote:> Hi, > > I would like to show a progress bar in the browser until my pages load. > > As my web pages take more that 10 seconds to load, I have decided to > show the progres bar. > > Please help me with your ideasPage and/or fragment caching works wonders... rarely is absolutely everything dynamic on a page. I''ve even seen benefits from caching rows in an index view when assembling the data for each row requires complex backend work. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.