Forum: Ruby on Rails Progressbar for Slow Loading Webpages

Posted by Sudheendra Panganamala (sudheendra)
on 2010-09-02 12:05
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 by Frederick Cheung (Guest)
on 2010-09-02 12:41
(Received via mailing list)
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
Posted by Peter Hickman (Guest)
on 2010-09-02 12:54
(Received via mailing list)
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?
Posted by Aleksey Gureiev (Guest)
on 2010-09-02 13:03
Attachment: PGP.sig (496 Bytes)
(Received via mailing list)
> 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
Posted by Adrian Wadey (Guest)
on 2010-09-02 13:03
(Received via mailing list)
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
Posted by Ar Chron (railsdog)
on 2010-09-02 15:32
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.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.