<script> tag, that runs on the main thread. If there is too much activity on the main thread, it can slow down the site, making interactions jittery and unresponsive.
Web workers, service workers, and worklets are all scripts that run on a separate thread. So what are the differences between these three types of workers?
... read the whole story at bitsofco.de.