I am writing a css-in-js library, and I came across web worker recently, and I learnt how it can help me run code in parallel.
As the main thread is treated as UI thr