Progressbar for Slow Loading Webpages

85 views
Skip to first unread message

Sudheendra Panganamala

unread,
Sep 2, 2010, 6:05:07 AM9/2/10
to rubyonra...@googlegroups.com
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/.

Frederick Cheung

unread,
Sep 2, 2010, 6:33:05 AM9/2/10
to Ruby on Rails: Talk


On Sep 2, 11:05 am, Sudheendra Panganamala <li...@ruby-forum.com>
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

Peter Hickman

unread,
Sep 2, 2010, 6:53:21 AM9/2/10
to rubyonra...@googlegroups.com
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?

Aleksey Gureiev

unread,
Sep 2, 2010, 7:02:01 AM9/2/10
to rubyonra...@googlegroups.com
> 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

PGP.sig

Adrian Wadey

unread,
Sep 2, 2010, 6:57:59 AM9/2/10
to rubyonra...@googlegroups.com

On Sep 2, 11:05 am, Sudheendra Panganamala <li...@ruby-forum.com>
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 ideas

JavaScript 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


Ar Chron

unread,
Sep 2, 2010, 9:32:56 AM9/2/10
to rubyonra...@googlegroups.com
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 ideas

Page 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.

Reply all
Reply to author
Forward
0 new messages