Defer parsing of JavaScript (PageSpeed)

Home Forums WordPress Theme Grafon – Construction Building Renovate WordPress Theme Defer parsing of JavaScript (PageSpeed)

This topic contains 7 replies, has 2 voices, and was last updated by  metanoya 1 month ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #22367

    metanoya
    Participant

    Supported

    Hello, please help to solve the problem. See the attached image.

    Attachments:
    You must be logged in to view attached files.
    #22405

    Alma Viki
    Moderator

    Hi metanoya,

    Don’t worry about that, we are on updating theme, this issues is temporary. We will improve it by each version.

    Thanks for your sympathy.

    #22413

    metanoya
    Participant

    Supported

    Thanks for the answer.
    Can you tell me when to wait for an update, at least an approximate time frame?

    #22465

    Alma Viki
    Moderator

    Ok,
    We have other solution for you:
    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 );

    add this Code to function.php of your Child theme, Remember to use Child theme to custom anything.

    Or you can follow this guide: https://www.hostinger.com/tutorials/wordpress/how-to-defer-parsing-of-javascript-in-wordpress

    We will have new version in the next week.

    Thank you

    #22560

    metanoya
    Participant

    Supported

    Unfortunately, not one of the methods did not give satisfactory results.
    Either there are no changes, or the site does not work correctly.

    #22595

    Alma Viki
    Moderator

    Hi,
    I have tested your site on Google Page Speed:
    https://developers.google.com/speed/pagespeed/insights/?hl=vi&url=http%3A%2F%2Fxn--80abdon5c.xn--p1ai%2F&tab=desktop

    The result is really good, which tool you are using for checking?

    Thank you

    #22611

    metanoya
    Participant

    Supported
    #22614

    metanoya
    Participant

    Supported

    Correction is the same site, but only another template and maker. The previous template had to be thrown out !!!
    I hoped that at least your other template would work fine … but again problems

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

You must be logged in to reply to this topic.