3 ms·
Partytown: Run Third-Party Scripts from a Web Worker
- brianzelip 4y agoSee this JS Party episode for a discussion by Partytown co-author (and Angular creator) at the 50:19 mark, https://changelog.com/jsparty/237 https://changelog.com/jsparty/237. TL;DR, keep the main thread for your application, send 3rd party analytics, etc, to web workers.
- XCSme 4y agoChecking the benchmark, Partytown resuts in 237ms, while Baseline is 7ms. Am I missing anything? The browser APIs are already mostly running on separate threads (JS parsing, compilation, TCP requests, etc.).