I want to do some analysis work about the first screen.
First screen(or first page), I not sure whether this name is
appropriate, is the screen we see when we open a webpage without
scrolling down. I mean a webpage maybe have many content and be
composed of more than one screen, and we need to scroll down to read
the content in the other screen(except the first screen).
To analyse the first screen, I need to get all the components which
are received (maybe and render) before the first screen is showed to
the user.
Now, my problem is how to judge when the rendering of the first screen
is completely?
1, Is there any directly way to get time when the first screen is
finish?
2, Maybe this would need to listen to the paint even. So, the problem
maybe is how to listen to the paint even and detect what happen? I
know MozAfterPaint, but MozAfterPaint don't support Firefox-3.0.x, so
except MozAfterPaint, is there any other way that can be use in
firefox-3.0.x to listen to the paint events?
Any help will be very appreciated!
PS: why I need firefox-3.0.x?
Because as I know Firefox-3.1 and the above have a feature "worker
threads",
which can download the JS file in parallel. But now many other browser
still can't do this. I want to create a plugin to give some webpage
optimized advice, which I hope can be use in most browser.