GNOME Bugzilla – Bug 647434
Timeout not delaying rendering
Last modified: 2011-07-25 07:20:18 UTC
Created attachment 185688 [details] Example page showing a "Loading..." red box for 3 seconds I'm testing gnome-web-photo compiled with gtk-2.0, and I'm not able to delay rendering in order to be able to avoid "Loading..." message in a page like the attached one. Command line: gnome-web-photo -m photo -t 5 file:///tmp/test-delay.html test.png Red box with "Loading..." appears in test.png, and it's supposed to wait 5s, so the message shouldn't appear.
The timeout won't help: it's just a way to force rendering even if the page isn't fully loaded after the timeout. My guess is that we receive the "load finished" event before the javascript is executed. I'm not really sure there's anything we can do about that.
Ok, then I don't understand timeout parameter properly. My idea would be add a new parameter in order to delay the moment to take the photo. Once the web is rendered wait X seconds in order to generate the picture. I've done something similar with a parameter called "delay" in a test project: http://gitorious.org/wk2img This is really useful for pages with a lot of JavaScript that usually need sometime to be rendered.
We can add a --delay or --wait argument :-) That's rather trivial to do.
This would be really nice, at least for my case ;-)
I had a few free minutes, so I committed a --delay option. I'll do a new tarball soonish.