Removing ACF style & script junk
-
Any page with an Advanced Forms form gets flooded with ACF scripts and styles: jQuery UI, sliders, polyfills, i18n scripts, plus ACF & ACF Pro versions of the same scripts and files. The plugin docs have a suggestion to reduce this (https://advancedforms.github.io/guides/decreasing-number-of-scripts-and-styles/), but that still leaves around 20 extra script & style files loading with every form.
Dequeueing and deregistering the remaining scripts from their IDs does remove them, but leads to ACF JS errors popping up in the console due to other ACF inline code injections relating to these dependencies (even removing dashicons results in errors).
I’m surprised the plugin is just pushing all the ACF dependencies out to the front end of the site, instead of handling this more gracefully.
Is there any way we can get simple clean form output with this plugin, or have I just wasted US$79 on a licence for something that bloats sites with junk? (Yes I know there’s email support for purchasers, but I’ve had no acknowledgement of my email after 24 hours).
- The topic ‘Removing ACF style & script junk’ is closed to new replies.