can you explain what your problem is?
Not exactly a problem but an insight I am looking for. So here is the scenario. Let's say we are getting 100K records from an API call, and we need to process those data without blocking the main thread. What would be an ideal way to achieve it. Cause while I am looping through the data I don't want my page become unresponsive.
marking sometihng async won't help to increase responsiveness, you need web workers to move the processing out of the main thread
Okay cool. So how would you do it? I mean communicating with web worker and passing the data back and forth
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API
Getting 100K records is your first problem to solve I guess.
Yeah assuming you have no control over the backend i am trying to find if there could be a solution to it
Didn't get you
Обсуждают сегодня