[Greasemonkey] delay rendering while changing css-display mode of divs

Vectorspace vectorspace at ntlworld.com
Fri Mar 31 07:55:17 EST 2006


But even though there is nothing visible, the divs are still a part of 
the page so won't Firefox still re-render it repeatedly?

Matthias Bauer wrote:
> On 31.03.2006 00:36 Chris Hayes wrote:
>
>   
>> I have a page with a menu with 4000 items. Every item is a DIV on its own.
>> I need to hide or show all divs according to arrays, i do this by
>> setting the css display to block or none.
>> This takes a while and I was wondering whether this might be caused by
>> the browser re-rendering the page 4000 times.
>>
>> If this is true, is there a browser-safe way (at least FF1 and IE6) to
>> temporarily stop the rendering until I'm done?
>>     
>
> Set the parent element to display:none first, make your changes, then
> set it back.
>
> -Matt
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>
>   


More information about the Greasemonkey mailing list