Most voted "web-worker" questions
A web worker, as defined by the World Wide Web Consortium (W3C) and Web Hypertext Application Technology Working Group (WHATWG), is a Javascript script that runs in the backgrounds of an HTML page, independent of other user interface-related scripts (UI) that may have been executed from the same HTML page.
Learn more…8 questions
Sort by count of
-
6
votes1
answer115
viewsIs it possible to send messages from one Webworker to another Webworker?
I have a page where I intend 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…
-
2
votes1
answer33
viewsInject script into Worker
Hello, I have the following javascript class class MinhaClasse { static list() { return fetch('/api/endPoint', { method: 'GET', headers: { 'Authorization': Auth.getBasic() } }) } } When inside the…
-
1
votes2
answers227
viewsUse Promise in a Web Worker
TO using Web Workers for certain things, has how to use a Promise for when it finishes running? Kind of WR.postMessage({taskID: 'g_b_i'}).then(function(nonce){ console.log(dT(), 'Sending parameter…
-
1
votes1
answer40
viewsFailed to create Web Worker from local file in Chrome
When trying to create a worker var worker = new Worker('teste.js'); I receive the following message: Uncaught Securityerror: Failed to Construct 'Worker': Script at 'file://C:/..... /js/teste.js'…
-
0
votes1
answer257
viewsRenderaction does not consider my validations in ASP.NET models
Renderaction stopped considering the fields marked as [Required] on my models. Example of one of the models: private uint IdNews { get; set; } [Required(ErrorMessage = "Defina o título.")] public…
-
0
votes0
answers15
viewsHow to get the browser language in a Serviceworker?
How to get the browser language in a Serviceworker? navigator.language || navigator.userLanguage; //não funciona
web-workerasked 7 years, 11 months ago Arthur Menezes 2,210 -
0
votes1
answer57
viewsHow to fix typescript types in Service Worker?
I have a Typescript file that will be used in Service Worker, but by default, the scope/context/this global and variable self file will always reference to Window type, which is not what happens at…
-
0
votes1
answer31
views(Web|Service) Worker import UMD script - How to check context
How to check if the script is being called from a (Web|Service) Worker? I have been using UMD for a long time and am migrating my projects to support SW ... although I use many features available…