[webkit-dev] Limiting slow unload handlers (Re: Back/forward cache for pages with unload handlers)
Maciej Stachowiak
mjs at apple.com
Thu Sep 17 16:08:22 PDT 2009
On Sep 17, 2009, at 2:16 PM, John Abd-El-Malek wrote:
>
>
> I think the image trick is more attractive than <a ping> because
> it's easier for web developers to use. But I'm not convinced it's
> the cleanest method we can come up with. If we are expecting web
> developers to change, then I'd prefer something more explicit link
> asyncPing(url). The benefit is that it doesn't tie up connection
> limits like image loading would, and hence shouldn't impact the
> navigated page's loading. The UA is then free to pick the best time
> to do the ping, i.e. when network activity has died down.
>
With the Image trick, web developers don't have to change, other than
to get rid of the busy loop. I wouldn't be too averse to also adding
an explicit ping API, but it seems to me it's possible to do many of
the optimizations you describe for the Image-in-unload trick.
- Maciej
More information about the webkit-dev
mailing list