Close

Account

Documentation

Forum

Menu

gtmetrix bad score

  • Post count: 34
    nasimnazanin88
    October 11, 2018 at 5:58 pm #38109

    Hi,
    I checked my website built with Jnews theme in Gtmetrix and I get a bad score because if the defer parsing of Javascript. How can I solve that cause I think this is due to the theme.
    I have other websites built with other themes and they don’t have this issue.

    https://imgur.com/a/GaOYKpl

    Post count: 19
    Bloomland
    October 12, 2018 at 9:07 am #38132

    Comparing to mine, that’s a very good score.

    Post count: 10682
    Adek
    October 12, 2018 at 2:27 pm #38156

    Hi nasimnazanin88,

    Can you send me your site URL for further checking on my side? I will check it directly.

    Thank you

    Post count: 34
    nasimnazanin88
    October 12, 2018 at 9:44 pm #38182
    This reply has been marked as private.
    Post count: 229
    Ferdy
    October 15, 2018 at 2:32 pm #38227

    Hi nasimnazanin88,

    Please try to enable JNews Speed plugin or install autoptimze plugin and then check again in Gtmetrix.

    Thank you

    Post count: 34
    nasimnazanin88
    October 15, 2018 at 4:02 pm #38235

    Hi,
    I used the JNews Speed plugin once and the resutl was my images didn’t load anymore.
    Maybe it’s better to use this code:

    function defer_parsing_of_js ( $url ) {
    if ( FALSE === strpos( $url, ‘.js’ ) ) return $url;
    if ( strpos( $url, ‘jquery.js’ ) ) return $url;
    return “$url’ defer “;
    }
    add_filter( ‘clean_url’, ‘defer_parsing_of_js’, 11, 1 );

You must be logged in to reply to this topic.