javascript - Is it possible to optimize two scripts using web workers? -
i'm running 2 libraries dependency aware. mean order of execution not matter. observe each other , run in order.
script1.js script2.js
would benefit running these scripts in parallel (parallel processing) using web workers? (mdn doc)
i mean run faster if ran them serially?
both scripts available on client ( don't have download them ).
if 1 or both of scripts is/are purely functional, meaning doesn't need access dom or global javascript objects, benefit using web workers.
if not case, web workers no good. when js run through web worker, can pass messages main dom thread , receive them.
javascript web-worker
No comments:
Post a Comment