Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #768323

    I would to have better results with gtMetrix performance score.
    My pb : Defer parsing of JavaScript.

    Ok, so i search in yhis forum and i find this part of code :

    add_filter('clean_url','async_js',11);
    function async_js($url) {
          if ( false !== strpos( $url, 'jquery.js' ) || false === strpos( $url, '.js' )) {
              return $url;
          }
          return "$url' defer='defer";        
    }
    

    with this code i have better score 89 >> 96 but the Avia framework get troubles
    without >> Performace code : 89 but framework work well

    a pic is better than my poor english

    can i hope have both : better score performance and all the framework ?

    Thx

    #769841

    Hey Gleechme,

    You should only try to defer Javascript parsing on the public facing part of the website, and exclude that optimization for admin panel. And you should really make a lot of tests to see, which files are critical to be parsed first, and which can be parsed later.

    Your front page loads in 1.60sec, which is good. You don’t have any heavy sliders, galleries or videos, not sure that you really need to optimize that hard.

    Best regards,
    Victoria

    #769860

    Hey Victoria !

    Thanks for your answer !
    Yes, for this site, I am not more going to optimize than it (GtMetrix score : 92 a 90 = not so bad).

    It’s my first time with Enfold but certainly not my last ! It’s a fabulous theme (I love Avia builder) !
    I am more a graphic designer than developer (I hope :) ), Enfold is a real and enjoying new playground.

    You should only try to defer Javascript parsing on the public facing part of the website, and exclude that optimization for admin panel.
    Yes I have try this and it’s work fine (for the moment) ! I keep doing many tests on a personal platform of tests…

    Thanks for your work !

    #770338

    Hi Gleechme,

    Glad we could help and glad you enjoy Enfold! Happy exploring, building and optimising! :)

    Best regards,
    Victoria

    #1039801

    wp rocket is best – check it my website
    gtmetrix report gtmetrix report

    #1039883

    Hi amintab2001,

    Thanks for sharing, much appreciated :-)

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.