
andy.denton@shaw.ca(@andy-denton-shaw-ca)
2 Posts
Customers
Quote from andy.denton@shaw.ca on June 5, 2022, 00:45

Okay, I've done some of the leg work for this. I am using WP-Rocket with Cloudflare. When I disable the load JavaScript Deferred and clear caches the errors go away.
Note this only happens on every page from the search results except for page 1 which works fine. Not sure why the code is being deferred on the search pages other than 1.
I have attempted to exclude files in WP-Rocket and have used
/wp-content/plugins/woocommerce-products-filter/js/(.*).js
But it doesn't work.
Have tried
/wp-content/plugins/woocommerce-products-filter/js/front.js
But doesn't work.
Wondering which files to exclude for the load JavaScript Deferred.
Thanks
Andy

Okay, I've done some of the leg work for this. I am using WP-Rocket with Cloudflare. When I disable the load JavaScript Deferred and clear caches the errors go away.
Note this only happens on every page from the search results except for page 1 which works fine. Not sure why the code is being deferred on the search pages other than 1.
I have attempted to exclude files in WP-Rocket and have used
/wp-content/plugins/woocommerce-products-filter/js/(.*).js
But it doesn't work.
Have tried
/wp-content/plugins/woocommerce-products-filter/js/front.js
But doesn't work.
Wondering which files to exclude for the load JavaScript Deferred.
Thanks
Andy

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 6, 2022, 12:16
Hello Andy
Try to disable the setting (optimization) related to inline JS
Hello Andy
Try to disable the setting (optimization) related to inline JS

andy.denton@shaw.ca(@andy-denton-shaw-ca)
2 PostsTopic Author
Customers
Quote from andy.denton@shaw.ca on June 22, 2022, 02:00
Hi Pablo,
Sorry for the delay I've been away.
Under file optimization in WP Rocket, under Javascript files I have Minify Javascript enabled, My combine Javascript files is automatically disabled due to Delay Javascript execution being selected.
With the Load Javascript Deferred it causes huge render-blocking problems and causes my site to drop 20 points in Google pagespeed.
Would kinda like to know the Javascript file to exclude so I can enable the rest of the site for Javascript deferred.
Thanks in advance
Sincerely,
Andy
Hi Pablo,
Sorry for the delay I've been away.
Under file optimization in WP Rocket, under Javascript files I have Minify Javascript enabled, My combine Javascript files is automatically disabled due to Delay Javascript execution being selected.
With the Load Javascript Deferred it causes huge render-blocking problems and causes my site to drop 20 points in Google pagespeed.
Would kinda like to know the Javascript file to exclude so I can enable the rest of the site for Javascript deferred.
Thanks in advance
Sincerely,
Andy

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on June 22, 2022, 12:20
Hello Andy
there is a problem in inline js deferred loading. In my code there are commands that should inline the script to load before loading JS files, but WP Rocket, ignores this
It's just that these inline scripts must be loaded before the JS files are loaded - /wp-content/plugins/woocommerce-products-filter/js/front.js.
Hello Andy
there is a problem in inline js deferred loading. In my code there are commands that should inline the script to load before loading JS files, but WP Rocket, ignores this
It's just that these inline scripts must be loaded before the JS files are loaded - /wp-content/plugins/woocommerce-products-filter/js/front.js.