[Greasemonkey] Page-load jumpiness

alan taylor kokogiak at gmail.com
Thu Apr 28 15:28:46 EDT 2005

In experimenting, I've had a little luck with some pages by initially setting:

Then executing the main user script function via a timeout (100ms),
giving the browser time to hide the content before manipulating it,
then the last step of the main user script function is to reset the
body style to "".

This technique does not work for large pages, or pages with multimedia
or frames, but it did work for a few smaller-weight samples, like
google.com homepage and some personal pages.

Better than nothing. Sample code:


  function p(){



On 4/28/05, Alf Eaton <alf at hubmed.org> 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.
> On Apr 28, 2005, at 18:15, alan taylor wrote:
> > This may have been discussed before, but has anyone come up with a
> > workable way to handle the 'jumpiness' caused by re-structuring a page
> > with GM after it loads? Is there a way to pause rendering or hide the
> > rendered page until after GM-modification has taken place?
> >
> > I'm working on my own private view of NYTimes.com - and it's a thicket
> > of nested tables, so the jumping-around is pretty annoying. Thanks.
> >
> > -Alan Taylor
> > _______________________________________________
> > Greasemonkey mailing list
> > Greasemonkey at mozdev.org
> > http://mozdev.org/mailman/listinfo/greasemonkey
> >
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey

More information about the Greasemonkey mailing list