tgvashworth / ServiceWorker-Polyfill

[DEPRECATED] JavaScript ServiceWorker implementation, enabling exploration by authors.
66 stars 7 forks source link

Why does installing worker believe it is installed when receiving subsequent navigation? #39

Open ahume opened 10 years ago

ahume commented 10 years ago

I think it's trying to despatch activation event even if it's not finished waiting for caches.ready().

Test by installing with slow loading URL.

var resources = [
    'http://workerdemo.dev/assets/app.js',,
    'http://hang.leftlogic.com/main.js?10000' // Takes 10 seconds to respond.
];