• I have WP Show Posts plugin but not using it on the homepage. But when I do a speed test, it adds nearly a second of load time to my homepage.

    I am using all the options on WP Rocket and Autoptimize to speed up my site and it isn’t eliminating this.

    Any idea why it would be loading on my homepage when I am not using it there?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi there,

    I am using all the options on WP Rocket and Autoptimize to speed up my site and it isn’t eliminating this.

    Check Tom’s brief explanation and recommendation here:
    https://generatepress.com/forums/topic/only-load-wp-show-post-css-on-home-page/#post-845050

    Thread Starter Streater Kelley

    (@streater3000)

    I am having the opposite problem as that post… my problem is that WP Show Posts IS loading on my homepage when I don’t use it on my homepage. It is adding almost a second of load time, making my site just shy of the Insights score I want to achieve.

    Is there any way to not have it load on my homepage?

    Thanks

    Plugin Support Elvin

    (@ejcabquina)

    We can change the snippet to stop it from loading on homepage.

    add_action( 'wp_enqueue_scripts', function() {
        if ( is_front_page() ) {
            wp_dequeue_style( 'wp-show-posts' );
        }
    }, 20 );
    Thread Starter Streater Kelley

    (@streater3000)

    Seems to have worked! Fastest load score ever so I am pleased… thanks so much for your help!

    Plugin Support Elvin

    (@ejcabquina)

    No problem. Glad to be of any help. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Show Posts loading?’ is closed to new replies.