# Page loader progress bar

**URL:** <https://www.ruby-forum.com/t/page-loader-progress-bar/174395>\
**Category:** Rails\
**Created:** [August 26, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/page-loader-progress-bar/174395 "2009-08-26T12:15:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaweSSSSSK](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Post date:** [August 26, 2009, 12:15pm UTC](https://www.ruby-forum.com/t/page-loader-progress-bar/174395/1 "2009-08-26T12:15:27Z")

</div>

Hi,

I’d like to make search form with some kind of “progress bar” - user  
posts input, and AJAX overlay shows current progress (only step is  
needed like 20%)

Do you have any suggestions how to achieve this effect?

---

<div class="post-metadata">

**Author:** ![PaweSSSSSK](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Post date:** [August 26, 2009, 12:40pm UTC](https://www.ruby-forum.com/t/page-loader-progress-bar/174395/2 "2009-08-26T12:40:02Z")

</div>

On 26 Aug 2009, at 12:14, PaweÅ‚ K wrote:

> I’d like to make search form with some kind of “progress bar” - user  
> posts input, and AJAX overlay shows current progress (only step is  
> needed like 20%)
> 
> Do you have any suggestions how to achieve this effect?

On the serverside: background process that can return progress  
feedback (you’ll need to implement this yourself, and your search  
engine will have to be able to return progress too), pass the search  
task to the background processor

On the clientside:

- PeriodicalUpdater/Executer
- Comet
- Juggernaut
- …

Unless you are talking about really long request/response cycles for  
your searches and you know that the time it takes them to complete is  
not caused by bad indexing/optimizing, I really don’t see why you  
would need this. We handle a fair deal of data and our searches take  
fractions of a second, no matter how complex the query might be (most  
of the time, Solr handles the searches anyway).

Best regards

Peter De Berdt

---

<div class="post-metadata">

**Author:** ![PaweSSSSSK](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@PaweSSSSSK](https://www.ruby-forum.com/u/PaweSSSSSK)\
**Post date:** [August 26, 2009, 2:55pm UTC](https://www.ruby-forum.com/t/page-loader-progress-bar/174395/3 "2009-08-26T14:55:15Z")

</div>

I need to download and parse data from other sites, so the whole  
process could take 15-100 seconds, that’s why I’d like to at least  
show “I’m doing this and this” at the moment 🙂
