try adding plugins/advanced-custom-fields/ to the comma-separated JS optimization exclusion field maybe? and you’ll probably have to make sure “also aggregate inline JS” if off.
hope this helps,
frank
Thanks for your reply, but unfortunately this did not resolve the problem.
these are the errors on the console:
Uncaught ReferenceError: ECS_update_admin_bar_menu is not defined
at (index):47
(index):2189 Uncaught ReferenceError: acf is not defined
at (index):2189
(index):2189 Uncaught ReferenceError: acf is not defined
at (index):2189
autoptimize_6847b210e2525d82e2d413061d63a296.js:85 Uncaught TypeError: Cannot read property 'autop' of undefined
at acf.Model.onReady (autoptimize_6847b210e2525d82e2d413061d63a296.js:85)
at u (autoptimize_6847b210e2525d82e2d413061d63a296.js:82)
at Object.n (autoptimize_6847b210e2525d82e2d413061d63a296.js:82)
at Object.n.doAction (autoptimize_6847b210e2525d82e2d413061d63a296.js:82)
at HTMLDocument.<anonymous> (autoptimize_6847b210e2525d82e2d413061d63a296.js:82)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
this is the console errors when aggregating js-files is of:
color-picker.min.js?ver=5.5:2 Uncaught TypeError: Cannot read property '__' of undefined
at color-picker.min.js?ver=5.5:2
at color-picker.min.js?ver=5.5:2
(anonymous) @ color-picker.min.js?ver=5.5:2
(anonymous) @ color-picker.min.js?ver=5.5:2
-
This reply was modified 5 years, 7 months ago by
sautaroc.
well, this is the moment where I have to ask for your site’s URL so I can check the HTML source 🙂
OK, can you also exclude plugins/advanced-custom-fields-pro?
I have excluded now the following:
wp-includes/js/dist/, wp-includes/js/tinymce/, js/jquery/jquery.js, plugins/advanced-custom-fields/, plugins/advanced-custom-fields-pro/
error log is:
Uncaught TypeError: Cannot read property 'timepicker' of undefined
at jquery-ui-timepicker-addon.min.js?ver=1.6.1:1
at jquery-ui-timepicker-addon.min.js?ver=1.6.1:1
at jquery-ui-timepicker-addon.min.js?ver=1.6.1:1
(index):47 Uncaught ReferenceError: ECS_update_admin_bar_menu is not defined
at (index):47
acf-input.min.js?ver=5.9.0:3 Uncaught TypeError: Cannot read property 'autop' of undefined
at acf.Model.onReady (acf-input.min.js?ver=5.9.0:3)
at u (acf.min.js?ver=5.9.0:1)
at Object.n (acf.min.js?ver=5.9.0:1)
at Object.n.doAction (acf.min.js?ver=5.9.0:1)
at HTMLDocument.<anonymous> (acf.min.js?ver=5.9.0:1)
at i (jquery.js?ver=1.12.4-wp:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
at Function.ready (jquery.js?ver=1.12.4-wp:2)
at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
Do you have “force JS in head” active? If so, can you disable?
and “also aggregate inline JS”?
same for that. it’s disabled.
hmm … mystery …
can you try also excluding either;
* wp-content/themes
* OR wp-content/plugins
* OR wp-includes/js
very strange, none of it works. I did themes, plugins and js one after the other, the problem remains. The moment I disable aggregating js, everything is fine.
that is very strange indeed. you don’t have anything adding async/ defer to the (excluded) Javascript do you?
Very weird sautaroc, I’m afraid the only advice I have at this point is to keep “aggregate JS” off and as an alternative experiment with asyncing the JS to make sure it is not render-blocking?