'; print_r(OptimizeCommon::getAlreadyMarkedAsMinified()); echo ''; exit(); } if (isset($_GET['wpacu_remove_already_minified']) && Menu::userCanManageAssets()) { echo '
'; print_r(OptimizeCommon::removeAlreadyMarkedAsMinified()); echo ''; exit(); } if (isset($_GET['wpacu_limit_already_minified']) && Menu::userCanManageAssets()) { OptimizeCommon::limitAlreadyMarkedAsMinified(); echo '
'; print_r(OptimizeCommon::getAlreadyMarkedAsMinified()); echo ''; exit(); } } ); } } /** * */ public function showDebugOptionsFront() { if (! Menu::userCanManageAssets()) { return; } $markedCssListForUnload = array_unique(Main::instance()->allUnloadedAssets['styles']); $markedJsListForUnload = array_unique(Main::instance()->allUnloadedAssets['scripts']); $allDebugOptions = array( // [For CSS] 'wpacu_no_css_unload' => 'Do not apply any CSS unload rules', 'wpacu_no_css_minify' => 'Do not minify any CSS', 'wpacu_no_css_combine' => 'Do not combine any CSS', 'wpacu_no_css_preload_basic' => 'Do not preload any CSS (Basic)', // [/For CSS] // [For JS] 'wpacu_no_js_unload' => 'Do not apply any JavaScript unload rules', 'wpacu_no_js_minify' => 'Do not minify any JavaScript', 'wpacu_no_js_combine' => 'Do not combine any JavaScript', 'wpacu_no_js_preload_basic' => 'Do not preload any JS (Basic)', // [/For JS] // Others 'wpacu_no_frontend_show' => 'Do not show the bottom CSS/JS managing list', 'wpacu_no_admin_bar' => 'Do not show the admin bar', 'wpacu_no_html_changes' => 'Do not alter the HTML DOM (this will also load all assets non-minified and non-combined)', ); ?>
View the page with the following options disabled (for debugging purposes): |
CSS handles marked for unload:
'.esc_html($handle).'';
}, $markedCssListForUnload);
echo implode(' / ', $markedCssListForUnloadFiltered);
} else {
echo 'None';
}
?>
JS handles marked for unload:
'.esc_html($handle).'';
}, $markedJsListForUnload);
echo implode(' / ', $markedJsListForUnloadFiltered);
} else {
echo 'None';
}
?>
|