WordPress.org

Ready to get started?Download WordPress

Forums

WP CleanFix
WP CleanFix 3.0.2 load many css and js int he front end (2 posts)

  1. 2mk
    Member
    Posted 1 year ago #

    Since Wp cleanfix funtion is only to optimize database and remove unused data i don't think that necesesarry add so many js and css in the front end.

    <link rel='stylesheet' id='wpdk-jquery-ui-css'  href='http://www.example.com/wp-content/plugins/wp-cleanfix/wpdk/assets/css/jquery-ui/jquery-ui.custom.css?ver=1.1.0' type='text/css' media='all' />
    <link rel='stylesheet' id='wpdk-style-css'  href='http://www.example.com/wp-content/plugins/wp-cleanfix/wpdk/assets/css/wpdk.css?ver=1.1.0' type='text/css' media='all' />
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.tabs.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.resizable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.draggable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.button.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.dialog.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.datepicker.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.slider.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.sortable.min.js?ver=1.9.2'></script>
    <script type='text/javascript' src='http://www.example.com/wp-includes/js/jquery/ui/jquery.ui.droppable.min.js?ver=1.9.2'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var thickboxL10n = {"next":"Next >","prev":"< Prev","image":"Image","of":"of","close":"Close","noiframes":"This feature requires inline frames. You have iframes disabled or your browser does not support them.","loadingAnimation":"http:\/\/www.example.com\/wp-includes\/js\/thickbox\/loadingAnimation.gif","closeImage":"http:\/\/www.example.com\/wp-includes\/js\/thickbox\/tb-close.png"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://www.example.com/wp-include/js/thickbox/thickbox.js?ver=3.1-20121105'></script>
    <script type='text/javascript' src='http://www.example.com/wp-contet/plugins/wp-cleanfix/wpdk/assets/js/timepicker/jquery.timepicker.js?ver=1.1.0'></script>
    <script type='text/javascript' src='http://www.example.com/wp-conten/plugins/wp-cleanfix/wpdk/assets/js/validate/jquery.validate.js?ver=1.1.0'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    var wpdk_i18n = {"ajaxURL":"http:\/\/www.example.com\/wp-admin\/
    admin-ajax.php","messageUnLockField":"Please confirm before unlock this form field.\nDo you want unlock this form field?","timeOnlyTitle":"Choose Time","timeText":"Time","hourText":"Hour","minuteText":"Minute","secon
    dText":"Seconds","currentText":"Now","dayNamesMin":"Su,Mo,Tu,We,Th,Fr,
    Sa","monthNames":"January,February,March,April,May,June,July,August,Se
    ptember,October,November,December","monthNamesShort":"Jan,Feb,Mar,Apr,
    May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","closeText":"Close","dateFormat":"mm\
    /dd\/yy","timeFormat":"HH:mm"};
    /* ]]> */
    </script>
    <script type='text/javascript' src='http://www.example.com/wp-content/plugins/wp-cleanfix/wpdk/assets/js/wpdk.js?ver=1.1.0'></script>

    [not necessary to post all that code here either without using the code buttons]

    http://wordpress.org/extend/plugins/wp-cleanfix/

  2. gfazioli
    Member
    Plugin Author

    Posted 1 year ago #

    Hi 2mk,
    this is a "promo" version of CleanFix written with the WPDK (WordPress Development Kit) framework. The WPDK framework is used to write plugins and themes. For this reason you see several scripts and styles in the frontend.

    At this moment there is not a easy solution to avoid this, because the all wpXtreme framework is not installed (remember that this is a promo version).

    You could remove it by your functions.php in your active theme folder by using wp_deregister_style() and wp_deregister_script() for instance.

    add_action( 'wp_print_styles', '_deregister_styles', 99 );
    function _deregister_styles()
    {
      $list = array(
        'wpdk-jquery-ui',
        'wpdk-style'
      );
      wp_deregister_style( $list );
    }
    
    add_action( 'wp_print_scripts', '_deregister_scripts', 99 );
    function _deregister_scripts()
    {
      $list = array(
        'jquery-ui-core',
        'jquery-ui-tabs',
        'jquery-ui-dialog',
        'jquery-ui-datepicker',
        'jquery-ui-autocomplete',
        'jquery-ui-slider',
        'jquery-ui-sortable',
        'jquery-ui-draggable',
        'jquery-ui-droppable',
        'jquery-ui-resizable',
        'thickbox',
        'wpdk-jquery-ui-timepicker',
        'wpdk-jquery-validation',
        'wpdk-jquery-validation-additional-method',
        'wpdk-script'
      );
      wp_deregister_script( $list );
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.