PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Autoptimze´s "Aggregate inline JS" leads to dysfunction of WOOF

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, I have a strange problem: because my Cache is growing very fast I´ve deactivated within Autoptimize the"Aggregate inline JS" Checkbox (like recommended by Autoptimize in such cases).

But with this, my WOOF Products Filter is no longer working: I can set the filters, but nothing happened. My products were not sorted any more.

After activating"Aggregate inline JS" Checkbox inside Autoptimize again, WOOF also works normally again.

Do you have any ideas what the problem is and how it can be solved?

thx in advance

Hello

try  in  plugin settings->Advanced->Options - https://c2n.me/463rAi6.png

If  no  luck - drop me exact  link to the  issue

I just sent you"private data for this topic" (and updated it some seconds ago)

Hello

I tested  it - https://c2n.me/464JQgD  I can not repeat this error

You disabled the Checkbox"Aggregate JS Files?". But I mean another Checkbox:"Also aggregate Inline JS?" -> directly under the Checkbox you mean.

The interesting thing is, that with disabling your checkbox, mine is disabled too by autoptimize, but SWOOF works. But if you disable only the Checkbox that I mean, the problem is there. So what do you think?

Hello

Ok! Unfortunately, I can not find the cause of this error.  in  this  case  please  use  this   settings - https://c2n.me/465Zch6.png

thanks for trying but now it´s even more worse: WOOF works only, if both checkboxes were disabled:"Aggregate JS Files?" and"Also aggregate Inline JS?".
Before, WOOF worked by disabling only the checkbox"Also aggregate Inline JS?"

What have you changed within WP-admin?

My page speed seems to be better if at least only the checkbox"Also aggregate Inline JS?" is disabled.

Hello

I changed the settings only autoptimize

I checked  it - https://c2n.me/4674tER - it works

 

Misunderstanding, sorry, my fault.

I asked the author of Autoptimize and he suggests, to exclude the WOOF JS-files from being optimized (there is a field for that in Atoptimize right under the mentioned Checkboxes). Can you please tell me the names of the JS-files?

 

Hello

try  this  file - wp-content\plugins\woocommerce-products-filter\js\front.js

 

thank you, but excluding front.js from Autoptimize leads to the result, that the SWOOF-filter is not working (the skin of the SWOOF-filter in the sidebar changes and the products were not filtered).

It looks like SWOOF is not working without being optimzed by Autoptimize, this is strange, funny and sad at the same time ;) Do you have any other idea?

UPDATE

OK, I think I found the problem: jquery.js was not excluded from being optimized. By default, within Autoptimize jquery.js is in the list of excluded JS-files (reasons: https://wordpress.org/plugins/autoptimize/#faq ).

With excluding jquery.js from being optimized, SWOOF is working correctly if I deactivate within Autoptimize the “Also aggregate inline JS” Checkbox.

I don´t know exactly why, but now it works :)

one more thing: if you can adjust SWOOF to work also without excluding jquery.js from being optimized by Autoptimize, it would be great. Reason: excluding jquery.js slows a website down.

and I want to share the following feedback: SWOOF JS uses jQuery, that´s why excluding “front.js” from being optimized by Autoptimize does not helped.

Hello

Ok! Thank you for cooperation!

I will pass this to the developers.