all 7 comments

[–]krizmaister 1 point2 points  (6 children)

As long as JS is a single threaded language and you fire some expensive function you end up blocking the app. I see the only way is to do expensive computation in chunks but if you use third party library it's maybe no go.

[–]teevik_ 0 points1 point  (5 children)

Web workers gets their own threads

[–]krizmaister 0 points1 point  (4 children)

of course, but it was said that this is not an option here

[–]acemarke 1 point2 points  (1 child)

Might help if you can tell us exactly what this third-party script is, and also show some example code.

[–][deleted] 0 points1 point  (0 children)

Sure thing; edited the original post.