Home › Forums › Bug Reports › ACF Tabs not showing under pagesspeed module › Reply To: ACF Tabs not showing under pagesspeed module
Just a comment for people looking for anything similar. Please not that I am not the developer of ACF or do I have first hand knowledge of the module mentioned in the OP.
The main problem with when things that combine scripts into a single file break a site is that they fail to take into account the use of localizing scripts in WP. Many plugins, including ACF rely on this localization to work.
When a script is localized WP adds something similar to this just before the line that loads the JS file
The above is a WP localization for /wp-admin/js/edit-comments.js
This localized data must appear before the effected script is included in many cases because the script depends on these values to work properly.
In other cases the combination does take this into account but it will minify this example code to a single line, which will also break the code because the CDATA tags need to be their own separate lines.
Another thing that could break sites is that a tiny error in one JS file, when minified, could cause an error that breaks all of the scripts that are included after it.
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!
The new features in ACF 6.1 mean we’ve nearly doubled the number of translatable strings, and we need help translating them into your language. See how translations are progressing and how you can help at the link below. https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 17, 2023
© 2023 Advanced Custom Fields.