[Twisted-web] LivePage and Safari

Valentino Volonghi aka Dialtone dialtone at divmod.com
Thu Dec 1 10:24:19 MST 2005

On Thu, Dec 01, 2005 at 12:13:16PM -0500, Beau Hartshorne wrote:

I'm not a javascript or Safari expert but...

> When I loaded up the Chatola demo, I noticed that Safari (2.0.2) was  
> still "loading" the page. I sat there waiting for a few seconds  
> before I realized that it would never stop because of the way the  
> LivePage works. (Yes, I'm brand-new.) The first time, I clicked on  
> Stop and of course nothing worked.

The problem is that the livepage opens a connection from the browser to the
server after the rendering is complete. This makes the browser believe the
page has still to finish rendering and keeps the loading up.

I'm unsure if this has to be considered a bug or a different implementation
but it is indeed annoying.

> To work around the problem, I included the LivePage code in the  
> <head>, and added an onload handler to <body> to call connect(0).  
> This didn't fix it, so I changed it to setTimeout('connect()', 1).  
> That worked, Safari no longer tells the user that it's waiting for  
> the page to load.

LivePage is about to be deprecated in favour of Athena but this fix still
makes sense for Athena too (since the same problem is available there).
I think patching both makes sense and if using the timeout actually fixes the
problem without breaking functionality then be it. :).

> This seems like a Safari bug, but would it make sense to patch the  
> Nevow code with this work-around? Where do you get started to submit  
> a change like this?

In the nevow bug tracker.


Valentino Volonghi aka Dialtone
Now Running MacOSX 10.4
Blog: http://vvolonghi.blogspot.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-web/attachments/20051201/1a252c56/attachment.pgp

More information about the Twisted-web mailing list