W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: Notifications

From: John Gregg <johnnyg@google.com>
Date: Wed, 3 Feb 2010 11:07:33 -0800
Message-ID: <5ce7a0db1002031107t5c41761at69172d01b43ba283@mail.gmail.com>
To: Olli@pettay.fi
Cc: public-webapps <public-webapps@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:36 GMT