[Greasemonkey] delay rendering while changing css-display mode
of divs
Matthias Bauer
ml-greasemonkey-42imk83y at moeffju.net
Fri Mar 31 07:55:29 EST 2006
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
More information about the Greasemonkey
mailing list