Questions tagged as 'web-worker'

1
answer

Is it possible to send messages from one WebWorker to another WebWorker?

I have a page where I want to use a set of WebWorkers to perform tasks in the background. Each WebWorker has a specific function, but potentially useful to others. It is simple to receive / send messages to and from a WebWorker created by the p...
asked by 11.12.2013 / 23:28
1
answer

Inject script into Worker

Hello, I have the following javascript class class MinhaClasse { static list() { return fetch('/api/endPoint', { method: 'GET', headers: { 'Authorization': Auth.getBasic() }...
asked by 25.11.2016 / 12:27
2
answers

Use promise in a Web Worker

To use Web Workers for certain things, can you use a promise for when it's done? Type like this WR.postMessage({taskID: 'g_b_i'}).then(function(nonce){ console.log(dT(), 'Sending parameter nonce: ', nonce); }); nonce w...
asked by 16.04.2015 / 01:48
1
answer

Failed to create Web Worker from local file in Chrome

When trying to create a worker var worker = new Worker('teste.js'); I get the following message:    Uncaught SecurityError: Failed to construct 'Worker': Script at   'file: /// C: /...../js/teste.js' can not be accessed from source 'null...
asked by 10.02.2016 / 18:14
1
answer

(Web | Service) Worker import UMD script - How to check the context

How to check if the script is being called from a (Web | Service) Worker? I have used UMD for a long time and I am migrating my projects to support SW ... although, I use many features available only on window objects and document man...
asked by 16.03.2018 / 04:33
0
answers

How to get the browser language in a ServiceWorker?

How to get the browser language in a ServiceWorker? navigator.language || navigator.userLanguage; //não funciona     
asked by 07.12.2016 / 18:59
1
answer

RenderAction does not consider my validations in ASP.NET Models

RenderAction has stopped considering fields marked as [Required] in my models. Example of one of the models: private uint IdNews { get; set; } [Required(ErrorMessage = "Defina o título.")] public string Title { get;...
asked by 08.02.2014 / 01:10