Home › Forums › Front-end Issues › Remove unused scripts/styles › Reply To: Remove unused scripts/styles
Well, I realized that much, I was looking for specifics – something like a list of the styles and scripts used.
I understand for example, that ACF itself uses the select2 plugin in the admin in several cases, but I don’t get why this is loaded through the acf_form_head
function in the frontend – in an ideal workflow, the plugin would somehow manage to see which field types are used and load the necessary scripts. On top of that having additional options on ‘heavy’ components – like the Repeater – to toggle on/off features not required, eg the sortable function or remove the tooltips.
..since this is not the case, I am willing to try by the good’ol’ trial-and-error method to see what works and what breaks in my frontend.
Any pointers to specific script/style handles will be appreciated!
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.