Written by: Aleš Sýkora

The Author of Toolset.wiki. Big fan of Toolset plugins and WordPress.

I am big fan of WordPress and Toolset plugins. I have done many projects based on WordPress. I also have experience with online marketing, PPC advertising and SEO. I live in Czech Budweis – the town of Budweiser Budvar breverage in the south of the Czech Republic – the heart of Europe.

I love skateboarding, snowboarding, frisbee, fitness, healthy lifestyle, tattoos, mountain biking and other sports. I enjoy having time with friends with good beer and good music.

Speeding up WordPress & Toolset

Last Update: 10. 11. 2019 , Category:

Hello, I have some speeding up tips for your WordPress & Toolset website. Currently I found that GeneratePress Premium + Toolset + WP Rocket do a really great job.

I can easy go to 0.5sec on 1st load of page on shared webhosting running two WP sites with 1200 posts. It will be even better when the old site will be changed with new currently developed version.

  1. Disable Pagination scripts + CSS (if you do not use pagination) – BE CAREFUL 😉
  2. Remove loading of dashicons in frontend
  3. Remove WordPress RSD link
  4. Remove WordPress Shortlink
  5. Disable XML-RPC
  6. Disable generating of WP version in head
  7. Disable WLW manifest (static file, no speed up)
  8. Disable Pingbacks

Put these into custom code snippet in Toolset settings (do not create a garbage in functions.php):

// Disable Pagination script
function cleanup_scripts() {
 
    if ( !is_admin() ) {
 
        wp_dequeue_script( 'wpv-pagination' );
 
    }
}
add_action( 'wp_print_scripts', 'cleanup_scripts', 100 );

// Disable Pagination CSS
function cleanup_styles() {
 
    if ( !is_admin() ) {
 
        wp_dequeue_style( 'views-pagination-style' );
 
    }
}
add_action( 'wp_print_styles', 'cleanup_styles', 100 );

// Remove dashicons in frontend for unauthenticated users
add_action( 'wp_enqueue_scripts', 'bs_dequeue_dashicons' );
function bs_dequeue_dashicons() {
    if ( ! is_user_logged_in() ) {
        wp_deregister_style( 'dashicons' );
    }
}

// Remove RSD link
remove_action( 'wp_head', 'rsd_link' ) ;

//Remove WordPress shortlink
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);

// Remove XMLRPC
add_filter('xmlrpc_enabled', '__return_false');

// Hide WP version from head
remove_action( 'wp_head', 'wp_generator' ) ;

// Remove WLW manifest
remove_action( 'wp_head', 'wlwmanifest_link' ) ;

// Disable pingbacks
add_action( 'pre_ping', 'disable_pingback' );

Support Us via our Affiliate link!

Toolset logo WordPress

What to do next?

Need a Toolset License?

Buy via affiliate link!

Looking for a tutorial?


Help other users – Add your snippet!


Join the discussion!