PluginProbe
WW

Web Worker Offloading

v0.3.0

by WordPress Performance Team

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...

10K+ active installs 3.5 (2 ratings) Requires PHP 7.4+ Requires WP 6.9+ Tested up to WP 7.1 Updated 2 weeks ago
Browse code Releases

About this plugin

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 →

Read the source

v0.3.0

Browse every file in this release with syntax highlighting and a file tree, or link straight to a line. Older releases and trunk are available from the version switcher.