Thanks for the quick response, Frank!
1. What JS error is visible on the browser console when “add try/catch wrapping” is not active?
–
ANSWER:
[Error] TypeError: null is not an object (evaluating 'handle.parentNode')
(anonymous function) (autoptimize_cc6ab08ffa0789dbbffdfad0652d18ae.js:7:209)
Global Code (autoptimize_cc6ab08ffa0789dbbffdfad0652d18ae.js:7:444)
2. Does the problem “go away” when you switch to “don’t aggregate but defer JS”? do you still see JS errors on the browser console?
–
ANSWER:
The problem goes away, except that my promo bar at the top of the page is gone. Here are the errors:
[Error] ReferenceError: Can't find variable: jQuery
o (www.-----.com:1:199097)
elegantPromo (www.-----.com:1:199971)
Global Code (www.-----.com:1:200004)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:1:200402)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:11)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:11)
[Error] TypeError: null is not an object (evaluating 'handle.parentNode')
(anonymous function) (www.-----.com:31)
Global Code (www.-----.com:41)
3. Does the problem “go away” when adding wp-content/themes to the JS opt. exclusion list, do you still see JS errors on the browser console?
–
ANSWER:
When I add “wp-content/themes” to the “Exclude scripts from Autoptimize” list, javascript works again, but much of the page content is missing.
[Error] TypeError: null is not an object (evaluating 'handle.parentNode')
(anonymous function) (autoptimize_408f47fb0a188ffa72dbd19a6d3008b8.js:7:209)
Global Code (autoptimize_408f47fb0a188ffa72dbd19a6d3008b8.js:7:444)
4. When JS opt. is entirely off, do you still see JS errors on the browser console?
–
ANSWER:
Yes, there are still errors. Also, my promo bar at the top of the page is gone and a couple of minor javascript things don’t work.
[Error] ReferenceError: Can't find variable: jQuery
o (www.-----.com:1:199097)
elegantPromo (www.-----.com:1:199971)
Global Code (www.-----.com:1:200004)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:1:200402)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:11)
[Error] ReferenceError: Can't find variable: jQuery
Global Code (www.-----.com:11)
[Error] TypeError: null is not an object (evaluating 'handle.parentNode')
(anonymous function) (www.-----.com:31)
Global Code (www.-----.com:41)