[Greasemonkey] delay rendering while changing css-display mode of
divs
Jeremy Dunck
jdunck at gmail.com
Mon Apr 3 07:49:06 EDT 2006
On 4/3/06, Chris Hayes <chayes at antenna.nl> wrote:
> 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
So-- are you adding and removing tons of DOM elements? If so, you
might consider using innerHTML on chunks, or you might consider
building a replacement menu and then swapping it in when done building
it.
And yes, you can add and remove style elements, which I think would be
efficient in this context.
Have you tried testing to see which part of your script is taking the time?
More information about the Greasemonkey
mailing list