Support » Plugin: Calculated Fields Form » Cupertino JQuery script loading

  • Resolved anefarious1

    (@anefarious1)



    I’m trying to improve my website’s performance. I used unused-css.com to identify a Calculated Forms script that’s loading which isn’t used on my website. It is:

    calculated-fields-form/css/cupertino/jquery-ui-1.8.20.custom.css?ver=4.8.3

    Is there a way to not load that script since it is not actually needed? Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @anefarious1,

    Actually these styles are used for the datepicker and slider controls, but if you these styles were included by the theme or any other plugin in your website, you can remove it following the steps below:

    1. Open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_admin_int.inc.php” file with the text editor of your choice, and delete the piece of code:

    <link href="<?php echo plugins_url('/css/cupertino/jquery-ui-1.8.20.custom.css', CP_CALCULATEDFIELDSF_MAIN_FILE_PATH); ?>" type="text/css" rel="stylesheet" property="stylesheet" />

    2. Similar to the previous step, open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_public_int.inc.php” file with the text editor and delete the piece of code:

    wp_enqueue_style( 'cpcff_jquery_ui' , plugins_url('/css/cupertino/jquery-ui-1.8.20.custom.css', CP_CALCULATEDFIELDSF_MAIN_FILE_PATH), array(), 'pro' );

    Best regards.

    Is there a way to tell if datepicker and slider controls are something I need? According to unused-css.com – I’m using 0% of whatever is contained at calculated-fields-form/css/cupertino/jquery-ui-1.8.20.custom.css?ver=4.8.3

    Plugin Author codepeople

    (@codepeople)

    Hello @anefarious1,

    The form inserted in your web page does not include a date/time field or slider control, so, in this case wouldn’t be needed.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cupertino JQuery script loading’ is closed to new replies.