Comments on: Web Workers in Angular /web-workers-in-angular/ anything related to code Fri, 26 Feb 2016 07:27:08 +0000 hourly 1 https://wordpress.org/?v=4.5.2 By: FredrikSandell /web-workers-in-angular/#comment-1033 Fri, 26 Feb 2016 07:27:08 +0000 /?p=5#comment-1033 The implementation actually supports updates through the promise metod “notify”. This allows the worker to send updates to the main thread beforr it completes. It is even possible to imagine a use case in wich the worker never completes, but runs in the background for the entire duration of the program and updates the main thread through “notifys”.

]]>
By: Chris Stephens /web-workers-in-angular/#comment-1031 Fri, 26 Feb 2016 00:29:36 +0000 /?p=5#comment-1031 This really is a good breakdown. My only problem with this design, is that its one message one response. Unless I read it wrong. Sometime you want to ask the worker to process a large list and message you as they they finish so you can start displaying things as they are processed. However if people are coming from a REST background then this would align with that paradigm.

]]>
By: Renato Vieira /web-workers-in-angular/#comment-1020 Sun, 21 Feb 2016 12:51:15 +0000 /?p=5#comment-1020 Great article, i have the same issue here, loading huge ammounts of data blocks UI.

I will try this approach, thanks

]]>
By: ernest leitch /web-workers-in-angular/#comment-984 Fri, 05 Feb 2016 22:24:44 +0000 /?p=5#comment-984 This looks pretty nice. I like that it resolves the result with a promise and supports the notify functionality.

]]>
By: Franklin Gerald X /web-workers-in-angular/#comment-902 Wed, 20 Jan 2016 13:40:59 +0000 /?p=5#comment-902 Hi. I have a question related to adding dependency. I am not able to access scope variable inside the workerpromise function.

Eg. I am having a http call inside my worker code. I get the results. I need to pass the results to another function .

Either I need to call the function inside the worker code or it should be returned to other function where i can manipulate the data.

And also can you tell me how to add external dependency into webworker with an example. Like I want to add ngResource as a dependency

Thanks in Advance
Frank

]]>
By: Angular 2 hits beta and it’s a big deal for the future of the Web | Wisdom Parliament /web-workers-in-angular/#comment-771 Wed, 16 Dec 2015 11:50:58 +0000 /?p=5#comment-771 […] the most interesting part is it also includes a new experimental Web Workers feature that moves all Angular code to a separate Worker instance, which is expected to result in […]

]]>
By: Manik /web-workers-in-angular/#comment-701 Thu, 26 Nov 2015 07:46:16 +0000 /?p=5#comment-701 Hi,
I am looking to use the web workers to upload some files over the network. The file size is ~2MB and there may be ~6 images in a lot. Is it a good idea to use webworkers. I tried with some of the directives available, but it uploads some of the files and misses some of them.

]]>
By: Matt Slocum /web-workers-in-angular/#comment-465 Sun, 04 Oct 2015 20:06:54 +0000 /?p=5#comment-465 I wrote an angular webworker module that allows you to turn any function into a webworker. I feel it is pretty easy and useful. Check it out. http://mattslocum.github.io/ng-webworker/

]]>
By: Sam /web-workers-in-angular/#comment-237 Tue, 28 Jul 2015 18:27:00 +0000 /?p=5#comment-237 Which browsers are the two of you using?

From MDN

There is currently disagreement among browsers vendors on what URIs are of the same-origin; Gecko 10.0 (Firefox 10.0 / Thunderbird 10.0 / SeaMonkey 2.7) and later do allow data URIs and Internet Explorer 10 does not allow Blob URIs as a valid script for workers.

]]>
By: FredrikSandell /web-workers-in-angular/#comment-192 Thu, 16 Jul 2015 14:08:32 +0000 /?p=5#comment-192 Hi Matjaz,

Generally it is not a good idea to use web workers to populate a table. A web worker can not directly manipulate the DOM (which is what manipulating the table requires you to do). However if the data requires a lot of CPU bound processing before being inserted in to the table it can be a good idea to use web workers.

]]>