Re: Notifications

On Wed, Feb 3, 2010 at 10:55 AM, Olli Pettay <Olli.Pettay@helsinki.fi>wrote:

> On 2/3/10 8:33 PM, John Gregg wrote:
>
> I will make this more specific in the draft: create[HTML]Notification
>> should not load the necessary resources until it is about to be
>> displayed (in case of a queue).  Once it is at the top of the queue, it
>> should:
>>
>> - load its resources as if opening a new window
>> - dispatch the display event
>> - show itself on the screen
>>
>
> Does it wait for all the resources to load before dispatching display
> event? What if loading resources takes lots of time?


I think that will be fine even if it takes lots of time.  Since it also
waits until resources are loaded before displaying the notification, the
display event and the actual display will essentially coincide.  I should
probably clarify that by loading resources I mean loading the URL supplied
to createHTMLNotification or the URL supplied for the icon to
createNotification.  If the HTML requires sub-resources, those could be
loaded after the display.

Received on Wednesday, 3 February 2010 19:08:02 UTC