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

Chris Hayes chayes at antenna.nl
Mon Apr 3 13:19:24 EDT 2006


Matthias Bauer wrote:
> On 31.03.2006 08:55 Vectorspace wrote:
>
> >> Set the parent element to display:none first, make your changes, then
> >> set it back.
> > 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?
>
> No, Firefox doesn't redraw invisible elements (actually it never draws
> them in the first place ;)). Using this technique worked fine for me.
>   
unfortunately i did not notice any speed improvement.

I am now considering to write a new stylesheet for every change request. 
I can get the css string/file via xml_httprequest, is it possible to 
'activate' such a string?
Chris


More information about the Greasemonkey mailing list