* We will Dequeue the jQuery UI script as example.
* Hooked to the wp_print_scripts action, with a late priority (99),
* so that it is after the script was enqueued.
function wp_remove_scripts() {
// check if user is admin
if (current_user_can( ‘update_core’ )) {
else {
// Check for the page you want to target
if ( is_page( ‘homepage’ ) ) {
// Remove Scripts
wp_dequeue_style( ‘jquery-ui-core’ );
add_action( ‘wp_enqueue_scripts’, ‘wp_remove_scripts’, 99 );

Website Speed Checklist

Step 1: Download Code Snippets plugin and click Add new. Then copy paste the code to Remove Unused CSS

Step 2: Download PhastPress plugin and set optimization settings according to my YouTube video below.

Step 3: Download WP Meteor Plugin and set the setting bar all the way right.

Step 4: Optimize all images to compress to small file sizes and serve images in WEBP format for faster load times.

Step 5: Make sure you use a caching plugin

Step 6: Use a fast website hosting company like Siteground.