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
The wp_service_worker_json_encode() function was added to automatically strip slashes and pretty-print. This was for the sake of manually inspecting the service worker JS. However, this adds additional bytes to the response. And in practice, pretty-printing is easily done in DevTools anyway.
So I want to eliminate the use of wp_service_worker_json_encode(). We can just remove it since no other plugins are using this function, but to be safe we can deprecate it.
The text was updated successfully, but these errors were encountered:
The
wp_service_worker_json_encode()
function was added to automatically strip slashes and pretty-print. This was for the sake of manually inspecting the service worker JS. However, this adds additional bytes to the response. And in practice, pretty-printing is easily done in DevTools anyway.So I want to eliminate the use of
wp_service_worker_json_encode()
. We can just remove it since no other plugins are using this function, but to be safe we can deprecate it.The text was updated successfully, but these errors were encountered: