You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discovered in https://wordpress.org/support/topic/sevice-worker-error/ some sites may erroneously print scripts or styles at wp_enqueue_scripts when they should rather be using the wp_print_styles or wp_print_scripts actions (or even wp_head).
To guard against this, the above logic should be wrapped in output buffering to suppress any output and then clean the buffer.
The text was updated successfully, but these errors were encountered:
The service worker fires
wp_enqueue_scripts
action:pwa-wp/wp-includes/class-wp-service-workers.php
Lines 118 to 144 in 943de6d
As discovered in https://wordpress.org/support/topic/sevice-worker-error/ some sites may erroneously print scripts or styles at
wp_enqueue_scripts
when they should rather be using thewp_print_styles
orwp_print_scripts
actions (or evenwp_head
).To guard against this, the above logic should be wrapped in output buffering to suppress any output and then clean the buffer.
The text was updated successfully, but these errors were encountered: