I have a webpage that needs to do some intense calculations, so I create a web worker to help out.
The web worker is terminated after its task finishes, but I need to do the task multiple times. Is there any way I can have the webpage or browser load the worker's script files only once, then distribute them to the new workers without having to fetch them from the server again?
I could make the tasks work on only one web worker though that would be less ideal.