Pinboard: Gaps appeared on both posts page and home page

Viewing 7 posts - 1 through 7 (of 7 total)
  • #17039
    bergam
    Participant

    Hello,

    I am using a child theme. My technical knowledge is limited but I have done some caching and moved js code to the footer via a plugin today. Then I have optimized the images via another plugin. Now the page speed is fine but there appeared some gaps between the post excerpts on both blog page and on the home page.

    My website is: http://www.evdeas.com

    I would be grateful if you can help mme to see what I did wrong and how to correct it as these gap are bothering me so much.

    Thanks.

    #17043
    Daniel Tara
    Keymaster

    You have only moved the linked scripts to the footer and left the inline scripts in the header. You need to remove the function pinboard_call_scripts from the wp_head hook and move it to the wp_footer hook. In functions.php

    add_action( 'wp_head', 'pinboard_call_scripts' );

    replace with:

    add_action( 'wp_footer', 'pinboard_call_scripts' );
    #17044
    bergam
    Participant

    Hello Daniel,

    Thank you very much for your reply but it did not seem to be solving the problem. Could that be caused by something else please?

    Many thanks again.

    #17047
    bergam
    Participant

    Hello again,

    I have removed the plugin and that solved my problem. My page speed declined again and Google tells me to Remove Render-Blocking JavaScripts but I have no idea how to do that without a plug-in.

    Would you be able to help? I hope I am not asking for too much.

    Many thanks.

    • This reply was modified 10 years, 5 months ago by bergam.
    #17053
    Daniel Tara
    Keymaster

    Try increasing the priority of the footer call:

    add_action( 'wp_footer', 'pinboard_call_scripts', 30 );
    #17060
    bergam
    Participant

    Still no luck, I still have 8 render-blocking scripts but thanks for the effort. It is appreciated. I guess I will have to live with this page speed.

    #17064
    Daniel Tara
    Keymaster

    It probably depends on the efficiency of the plugin you are using. Try WP Minify.

Viewing 7 posts - 1 through 7 (of 7 total)

Tagged: ,

You must be logged in to reply to this topic.