Home › Forums › General Issues › Need to defer scripts › Reply To: Need to defer scripts
I imagine that you’re having a problem deferring ACF scripts because they are localized and the plugin is not handling the localization of scripts properly, but that’s just a guess.
The scripts in ACF also depend on jQuery and several others so you would need to not defer these as well.
If you’re using ACF5 you can look in the plugin file /advanced-custom-fields-pro/acf.php on line 369 and you find a function named register_assets()
. This is where all the scripts are registered.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.