Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1051580
    Anonymous
    Inactive

    Hi,
    Isn’t the x theme optimized for “Eliminate render-blocking JavaScript and CSS in above-the-fold content”. I just checked on google pagespeed, and found this was marked in red.

    Solutions please, thanks

    #1051934
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    Please walk-through following thread to resolve the issue:

    https://community.theme.co/forums/topic/eliminate-render-blocking-javascript-and-css-in-above-the-fold-content-2/

    Thanks.

    #1052005
    Anonymous
    Inactive

    I actually use the wp super cache plugin currently.
    Is there a workaround to this?
    Thanks

    #1052060
    Paul R
    Moderator

    Hi,

    You can try this third party plugin.

    https://wordpress.org/plugins/above-the-fold-optimization/

    Hope that helps.

    #1054426
    Anonymous
    Inactive

    The default setting on this plugin does not change anything either. Is there any specific change that i need to do?

    #1055222
    Friech
    Moderator

    Hi There,

    Add the code below on top of your functions.php file.

    function _remove_script_version( $src ){
     $parts = explode( '?', $src );
     return $parts[0];
    }
     
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

    Just right underneath the line:

    // Additional Functions
    // =============================================================================

    Make sure Google insight reads your changes by clearing your site cache.

    Thanks.

  • <script> jQuery(function($){ $("#no-reply-1051580 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>