discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SimpleWebKit - Status


From: Peter Cooper
Subject: Re: SimpleWebKit - Status
Date: Thu, 15 Mar 2007 12:49:19 +0100 (CET)
User-agent: SquirrelMail/1.4.9a

Hi Nikolaus

> Where I have no clear solution is how subresources (e.g. an embedded
<img>) correctly notify the visual elemens (which is a subclass of
NSImageCell embedded as an NSTextAttachment in an NSTextView) that their
content has changed.

My suggestion is to put a placeholder NSTextAttachment (perhaps a "broken
image" icon as per other browsers) into the NSTextView and defer putting
the real resource in until the resource has loaded. The image or object
tag exists in the DOM tree, and your queued loading activity can backfill
any references and the correct NSTextAttachment when complete.

> Another unsolved issue is how the loading mechanism should enable the
CSS parser to handle <style type="text/css">@import "URL"</style> which
needs to resume parsing onlyy after the subresource data
> becomes available. Well, parsing could trigger loading of the
> subresource unless it has already been loaded and stop. Completion of
the subresource could restart the full CSS parse process.

I'd agree with this. A key user experience optimisation would be creating
an idea of a "settling time" for the document - mark the document dirty
and wait for either a small time (0.5 seconds) with no further successful
resource loads or for the completion (successful or otherwise) of all
resource loads before triggering a full CSS parse and therefore
re-rendering.

Regards

Peter








reply via email to

[Prev in Thread] Current Thread [Next in Thread]