- Messages
- 143
- Reaction score
- 204
- Points
- 243
#ProgrammersWorkProductivitySeries
Performance nerd ka ba? I will share one that I used in one of my projects regarding data science. In that project ginagamit tlga namin ang big data and we rely on performance to calculate statistic functions without the user waiting.
Partytown is a lazy-loaded library to help relocate resource-intensive scripts into a web worker, off of the main thread. Its goal is to help speed up sites by dedicating the main thread to your code and offloading third-party scripts to a web worker. The philosophy is that the main thread should be dedicated to your code, and any scripts that are not required to be in the critical path should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.
So you can visualize this as
Since the javascript is a single threaded language, the Partytown will use webworker to make concurrent handling of the requests and resources.
Check their documentation at https://partytown.builder.io/
And community at https://github.com/BuilderIO/partytown
Performance nerd ka ba? I will share one that I used in one of my projects regarding data science. In that project ginagamit tlga namin ang big data and we rely on performance to calculate statistic functions without the user waiting.
Partytown is a lazy-loaded library to help relocate resource-intensive scripts into a web worker, off of the main thread. Its goal is to help speed up sites by dedicating the main thread to your code and offloading third-party scripts to a web worker. The philosophy is that the main thread should be dedicated to your code, and any scripts that are not required to be in the critical path should be moved to a web worker. Main thread performance is, without question, more important than web worker thread performance.
So you can visualize this as
Since the javascript is a single threaded language, the Partytown will use webworker to make concurrent handling of the requests and resources.
Check their documentation at https://partytown.builder.io/
And community at https://github.com/BuilderIO/partytown