This plugin offloads JavaScript execution to a Web Worker, improving performance by freeing up the main thread. This should translate into improved Interaction to Next Paint (INP) scores. ⚠ This functionality is experimental, and it is now intended to be sunset. ⚠ In order to opt in a script to be loaded in a worker, simply add worker script data to a registered script. For example, if you have a script registered with the handle of foo, opt-in to offload it to a web worker by doing: wp_script_add_data( 'foo', 'worker', true ); Unlike with the script loading strategies (async/defer), any inlin...
Read the full description on WordPress.org →