[Greasemonkey] Page-load jumpiness

Bill Donnelly donnelly at snowcrest.net
Thu Apr 28 16:15:00 EDT 2005

That's an interesting idea.
You could set it to some huge value, like 12,345
and then have any script that wants to delay painting
call a GM_waitForPaint() function to increment a counter
and when they are finished with what they are doing
call a GM_goForPaint() function to decrement a counter,
and when the counter equals zero, which would need to be
checked at some point, call whatever painting function
in Firefox that would normally be called.
Shouldn't be too hard.  8p

Alf Eaton wrote:

> It's not really ideal, but you could set nglayout.initialpaint.delay 
> in about:config to 1000 - stopping the page from being rendered for 
> 1000 milliseconds, which is often enough for all the script processing 
> to take place. Unfortunately it'll also slow down the display of pages 
> that load quicker than that.
> alf.

More information about the Greasemonkey mailing list