• Resolved Jure

    (@xjure)


    How to disable printing of unnecessarry scripts that are printed on frontend?
    I only use text fields and upload file field.

    <script type='text/javascript' src='http://sti-pro.local/wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.min.js?ver=5.8.7'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-content/plugins/advanced-custom-fields-pro/pro/assets/js/acf-pro-input.min.js?ver=5.8.7'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-content/plugins/advanced-custom-fields-pro/assets/inc/select2/4/select2.full.min.js?ver=4.0'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-includes/js/jquery/ui/datepicker.min.js?ver=1.11.4'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-content/plugins/advanced-custom-fields-pro/assets/inc/timepicker/jquery-ui-timepicker-addon.min.js?ver=1.6.1'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-includes/js/jquery/ui/draggable.min.js?ver=1.11.4'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-includes/js/jquery/ui/slider.min.js?ver=1.11.4'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-includes/js/jquery/jquery.ui.touch-punch.js?ver=0.2.2'></script>
    <script type='text/javascript' src='http://sti-pro.local/wp-admin/js/iris.min.js?ver=1.0.7'></script>
Viewing 1 replies (of 1 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    Hi!

    As you’ve noticed ACF has an unfortunate tendency to enqueue a lot of different scripts. The best way to remove these is to use the built-in “wp_dequeue_script” and target the ones you know you won’t need.

Viewing 1 replies (of 1 total)

The topic ‘How to remove jQuery plugin’s scripts?’ is closed to new replies.