Hi,
Turning on the JS Optimization in Template's Global Settings breaks Javascript.
I get errors like:
d23ebf69b4fffab00d90a73de610e36f.js:800 Uncaught TypeError: (intermediate value)(...) is not a function
at d23ebf69b4fffab00d90a73de610e36f.js:800:1
(anonymous) @ d23ebf69b4fffab00d90a73de610e36f.js:800
and
Uncaught TypeError: $(...).find(...).chosen is not a function
at initChosen (sap-services:17:503)
at HTMLDocument.<anonymous> (sap-services:17:343)
at u (107044f5450d0d74b4881611869cae7b.js.pagespeed.jm.iRTMukBY73.js:1:27579)
at Object.fireWith [as resolveWith] (107044f5450d0d74b4881611869cae7b.js.pagespeed.jm.iRTMukBY73.js:1:28337)
at Function.ready (107044f5450d0d74b4881611869cae7b.js.pagespeed.jm.iRTMukBY73.js:1:30124)
at HTMLDocument._ (107044f5450d0d74b4881611869cae7b.js.pagespeed.jm.iRTMukBY73.js:1:27307)
Here are the URLs affected by the issue:
https://dot-sap.com/faq/return-to-duty-process
https://dot-sap.com/faq/sap-services
https://dot-sap.com/faq/fmcsa-clearinghouse
Please note that I have currently deactivated the JS Optimization. You need to turn it back on to see the issue.
As a result the menu of Frequently Asked Questions does not work. Turning it off resolves the issue, however it would be great to know what are the JS files that are breaking so I could add the in the Exclude JS Files list.
Eveything else seems to be working fine.
Any help would be greatly appreciated.
Thank you in advance and Happy New year to all Joomlart's people. 😃