get_array( 'user-experience-remove-cssjs-singles' ); // If old data structure convert to new. // Old data structure used url_pattern as the key for each block. New uses indicies and has url_pattern within. if ( ! is_numeric( key( $remove_cssjs_singles ) ) ) { $new_array = array(); foreach ( $remove_cssjs_singles as $match => $data ) { if ( empty( $data['includes'] ) ) { continue; } $new_array[] = array( 'url_pattern' => $match, 'action' => isset( $data['action'] ) ? $data['action'] : 'exclude', 'includes' => $data['includes'], 'includes_content' => $data['includes_content'], ); } $remove_cssjs_singles = $new_array; } Util_Ui::postbox_header( esc_html__( 'Remove CSS/JS On Homepage', 'w3-total-cache' ), '', 'remove-cssjs' ); ?>

array( 'user-experience-remove-cssjs', 'includes' ), 'label' => esc_html__( 'Remove list:', 'w3-total-cache' ), 'control' => 'textarea', 'disabled' => ! UserExperience_Remove_CssJs_Extension::is_enabled(), 'description' => array(), 'excerpt' => esc_html__( 'Specify absolute or relative URLs, or file names to be excluded from loading on the homepage. Include one entry per line, e.g. (googletagmanager.com, /wp-content/plugins/woocommerce/, myscript.js, name="myscript", etc.)', 'w3-total-cache' ), 'show_learn_more' => false, 'intro_label' => __( 'Potential Google PageSpeed Gain', 'w3-total-cache' ), 'score' => '+27', 'score_label' => __( 'Points', 'w3-total-cache' ), 'score_description' => __( 'In a recent test, removing unused CSS and JS added over 27 points to the Google PageSpeed score!', 'w3-total-cache' ), 'score_link' => 'https://www.boldgrid.com/support/w3-total-cache/pagespeed-tests/remove-scripts/?utm_source=w3tc&utm_medium=remove-css-js&utm_campaign=proof', ) ); ?>
', '', '', '' ), array( 'a' => array( 'href' => array(), ), 'em' => array(), ) ); } Util_Ui::postbox_footer(); Util_Ui::postbox_header( esc_html__( 'Remove CSS/JS Individually', 'w3-total-cache' ), '', 'remove-cssjs-singles' ); ?>

/>

', '', '', '' ), array( 'a' => array( 'href' => array(), ), 'em' => array(), ) ); } Util_Ui::pro_wrap_maybe_end( 'remove_cssjs_singles', false ); ?>