jakiestfu / Blur.js

blur.js is a jQuery plugin that produces psuedo-transparent blurred elements over other elements.
924 stars 212 forks source link

[feature request] Workers support #16

Open CezaryDanielNowak opened 10 years ago

CezaryDanielNowak commented 10 years ago

When running blurjs, there is noticeable lag. Using Web Worker to transform image would fix the lag :)

Huespal commented 10 years ago

Yeah! You're right. Do you or someone have any clue on how to do that? I'm trying to make it possible, but the entire plugin is done in jQuery, and worker's need to be in native JavaScript.

sailens commented 10 years ago

If there is workers implementation I'd definitely use it. Lag is too heavy

CezaryDanielNowak commented 10 years ago

For now lag is caused also by events handled in wrong way. In my fork there is a lot of performance fixes: https://github.com/korpirkor/Blur.js

sailens commented 10 years ago

I'll look into your fork, thanks @korpirkor !

sailens commented 10 years ago

The blur method you use is significantly faster, but also uglier. I'll study both to see which one suits me better, thanks!

CezaryDanielNowak commented 10 years ago

You can still use StackBlur instead of StackBoxBlur, just revert this commit https://github.com/korpirkor/Blur.js/commit/58878ab95bb0458b971760c8d007736348ca63b5 . I could make switch for blur algo but it would increase file size

Huespal commented 10 years ago

I've finally done it by using Web workers.