# Working with :before / :loading

**URL:** <https://www.ruby-forum.com/t/working-with-before-loading/108699>\
**Category:** Rails\
**Created:** [July 6, 2007, 5:23am UTC](https://www.ruby-forum.com/t/working-with-before-loading/108699 "2007-07-06T05:23:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjsquire](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/74df32/32.png) [@rjsquire](https://www.ruby-forum.com/u/rjsquire)\
**Post date:** [July 6, 2007, 5:23am UTC](https://www.ruby-forum.com/t/working-with-before-loading/108699/1 "2007-07-06T05:23:44Z")

</div>

Simple question…

Within my view I have the following:  
\<%= observe\_form ‘interest’, :frequency =\> 0.25,  
:update =\> ‘search\_target’,  
:url =\> { :controller =\> ‘desk’, :action =\> ‘results’ },  
:before =\> “Effect.Fade(‘animation’);”%\>

I’m using :before to try to apply a fade to the layer before the results  
come up. Unfortunately, before the fade can even come close to  
finishing, the new page is displayed. Is there any way to slow down the  
loading or rather to specify how much time before the results action can  
be queried?
