Why print_script_block_data used on every page?
-
Hi!
Recently I noticed that on every page the script “var wc_product_block_data = JSON.parse (decodeURIComponent (“.
This script is output by the function print_script_block_data from woocommerce\packages\woocommerce-blocks\src\Assets.php.
Why is this script needed?
The problem is that I have a lot of categories and the script is just huge!
Just for example, I copied the script code and saved it in a text file. File size over 500 kilobytes! Half a megabyte of incomprehensible code!)))
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Why print_script_block_data used on every page?’ is closed to new replies.