Announcement

Collapse
No announcement yet.

Fixing Google PageSpeed Insights issues

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fixing Google PageSpeed Insights issues

    The Google PageSpeed Insights doesn't seem to like the Module_Code=mvga&Filename=mvga.js and would prefer that it be deferred or asynchronously load blocking resources - since this is for Google Analytics I find it ironic but would like to know what can be done for it?

    Then there are the CSS files. The other ReadyThemes combine them into a css.php file. Can I edit and use that file in a Base ReadyTheme? Or has it already been added to the latest version of the Base ReadyTheme?
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

  • Try moving that file to the footer and see if that makes any difference. If not, I can give you some code to load it is asynchronously

    For the CSS, what error is it giving you. You could manually combine them into a single fine or use the same css.php tool we use on the other themes.
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


    • Originally posted by Brennan View Post
      Try moving that file to the footer and see if that makes any difference. If not, I can give you some code to load it is asynchronously

      For the CSS, what error is it giving you. You could manually combine them into a single fine or use the same css.php tool we use on the other themes.
      Since Google now seems to be preferring asynchronousity, could you send that please?
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


      • Brennan, I could use this code also. I have a client that is using this tool and is fixated on this not realizing that google could change the criteria on this any time they wish.

        Thanks,

        Scott
        What help do you need today!
        Interactive Design Solutions http://www.southbound.com
        MivaMerchant Business Partner | Certified MivaMerchant Web Developer
        My T-shirt Collection is mostly MivaCon T-shirts!!
        Competitive Rates, Popular Modules, and Integrations:
        Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

        Comment


        • "If not, I can give you some code to load it is asynchronously"

          Brennan, wondering if you have this code?

          Thanks,

          Scott
          What help do you need today!
          Interactive Design Solutions http://www.southbound.com
          MivaMerchant Business Partner | Certified MivaMerchant Web Developer
          My T-shirt Collection is mostly MivaCon T-shirts!!
          Competitive Rates, Popular Modules, and Integrations:
          Product Copy | AutoBaskets | Waitlist Integration| Wholesale Integration

          Comment


          • I'm going to be circling back to a number of my Google PageSpeed Insights issue posts. I have a site that when I try implementing either a Google suggestion or another type suggestion something on the site breaks.

            The big issue now seems to be "Above the fold" and many of the resources are offsite. How do you fix something like that?
            Leslie Kirk
            Miva Certified Developer
            Miva Merchant Specialist since 1997
            Previously of Webs Your Way
            (aka Leslie Nord leslienord)

            Email me: [email protected]
            www.lesliekirk.com

            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


            • Hi Leslie,

              You could try setting the script tags to "async" and/or "defer", depending on browser support, or move the scripts to the bottom of the page unless, of course, they are referred to before the end of the page.
              Matt Zimmermann
              Director of UI/UX Standards and Theme Development
              / Miva, Inc.

              Comment


              • Originally posted by Matt Zimmermann View Post
                Hi Leslie,

                You could try setting the script tags to "async" and/or "defer", depending on browser support, or move the scripts to the bottom of the page unless, of course, they are referred to before the end of the page.
                The reason I'm circling back on this is because using either of these tags breaks the store in some shape or fashion. The defer tag on the mvga.js broke Google Analytics (it stopped reporting). Using the async tag on some of the other javascript files made a disaster of the site in various browsers (It seems to dislike Edge/IE the most). The site didn't want to load on Android mobile devices.

                But the bigger issue are all the third party resources that Google tells you to fix but you have no control over - how do you add a defer / async tag to a file that in "document.write" script?
                Leslie Kirk
                Miva Certified Developer
                Miva Merchant Specialist since 1997
                Previously of Webs Your Way
                (aka Leslie Nord leslienord)

                Email me: [email protected]
                www.lesliekirk.com

                Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                Comment


                • If you are referring to the Google Analytics script tag which it inserts into the HEAD of the page, it does so as async on its own. I have done research into this tag an it affecting actual page loads. What I have found is it has minimal impact although it gets flagged by Google's own page speed tests. The only recourse I have found would be to host the file locally, however this presents its own issues as you would then have to perform updates to the script as Google makes changes.


                  As for better control over document.write, take a look at this article: https://blog.dareboost.com/en/2016/0...pts-injection/
                  Matt Zimmermann
                  Director of UI/UX Standards and Theme Development
                  / Miva, Inc.

                  Comment


                  • Originally posted by Matt Zimmermann View Post
                    If you are referring to the Google Analytics script tag which it inserts into the HEAD of the page, it does so as async on its own. I

                    The only recourse I have found would be to host the file locally

                    Isn't is a script a local file - mvga.js



                    Leslie Kirk
                    Miva Certified Developer
                    Miva Merchant Specialist since 1997
                    Previously of Webs Your Way
                    (aka Leslie Nord leslienord)

                    Email me: [email protected]
                    www.lesliekirk.com

                    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                    Comment


                    • It *might* be more worthwhile to find an authority -- hopefully from Google themselves -- that explains how things like Web Page Speed Tests are "suggestions" only. Every single item they (and others) point out, have upsides/downsides. Even stuff as basic as image compression. Compress too much, get crappy looking product images, compress too little, eat up time.

                      Just went through this with a client using an outside search feature. Script WAS in the footer (to improve overall download speed), client complained about a half-second delay when getting search results, so I have to move the script back into the header.
                      Bruce Golub
                      Phosphor Media - "Your Success is our Business"

                      Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                      phosphormedia.com

                      Comment


                      • That's a really good idea. It would be even better to find one that understands Miva.
                        Leslie Kirk
                        Miva Certified Developer
                        Miva Merchant Specialist since 1997
                        Previously of Webs Your Way
                        (aka Leslie Nord leslienord)

                        Email me: [email protected]
                        www.lesliekirk.com

                        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                        Comment


                        • At the end of the day, this is about an HTML file. How that file gets created is basically immaterial. (Same as SEO.)
                          Bruce Golub
                          Phosphor Media - "Your Success is our Business"

                          Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                          phosphormedia.com

                          Comment


                          • Originally posted by Bruce - PhosphorMedia View Post
                            At the end of the day, this is about an HTML file. How that file gets created is basically immaterial. (Same as SEO.)
                            Yup, just with a little more server overhead and a few extra files here and there.
                            Leslie Kirk
                            Miva Certified Developer
                            Miva Merchant Specialist since 1997
                            Previously of Webs Your Way
                            (aka Leslie Nord leslienord)

                            Email me: [email protected]
                            www.lesliekirk.com

                            Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                            Comment


                            • Originally posted by Bruce - PhosphorMedia View Post
                              At the end of the day, this is about an HTML file. How that file gets created is basically immaterial. (Same as SEO.)
                              It also continues to be a moving target that even Google isn't pinning down https://www.practicalecommerce.com/m...more-important
                              Leslie Kirk
                              Miva Certified Developer
                              Miva Merchant Specialist since 1997
                              Previously of Webs Your Way
                              (aka Leslie Nord leslienord)

                              Email me: [email protected]
                              www.lesliekirk.com

                              Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                              Comment

                              Working...
                              X

                              This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

                              This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

                              Accept