I had a conflict with ACF / theme. The theme has an option to defer loading all javascript to the end. In general, this is good practice and I would like to enable this option.
This isn’t possible with ACF since it writes out code in-line. With the scripts deferred to the end, javascript errors are thrown because “acf” is not defined. The simple solution is to wrap all the in-line javascript code in jQuery(document).ready functions.
Can you please change the code to use document.ready instead of calling in line?
For details of the problem and code fixes, pls see this thread:
https://support.advancedcustomfields.com/forums/topic/uncaught-referenceerror-acf-is-not-defined/#post-49816
As I mentioned in the other thread, if you have not done so please submit a support ticket. The only people that read and reply to posts here are other users.
https://support.advancedcustomfields.com/new-ticket/