Message from JavaScript discussions

July 2019

— I haven’t had experience with network requests inside the worker. My case was a really expensive function.

Message permanent page


I think Chrome Developer tools have ways to listen for console events and attach a debugger to the worker

— So the worker in my app is globally defined and i can call specific functions, or itself has eventhandlers for some fetches etc.

Message permanent page

— How can I take my step in Js as a leaner

— Why the last letter of let name is not getting displayed, it is showing undefined

— Anyone is active r8 nw

— That’s not the last letter. That’s the last + 1.

— Because arrays start in 0

— Got it

— Alert(d[h-1]) √
Alert(d[h]) undefeated x

— Hey my serviceworker is now proxy fetching well, but keeps telling me fetch-worker.js:10 Uncaught (in promise) TypeError: Failed to execute 'clone' on 'Response': Response body is already used ... it stinks!

Message permanent page

— `this.addEventListener('fetch', function (event) {
console.log('fetching ->', event.request);
.then(function (resp) {
return resp || fetch(event.request)
.then(function (response) {'v1')
.then(function (cache) {
cache.put(event.request, response.clone());
return response;

Message permanent page