Console errors MivaEvents is not defined on my Prod page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Protos
    Mivite

    • Mar 2012
    • 234

    #1

    Console errors MivaEvents is not defined on my Prod page

    Hello. Do you know if I can do something about this errors?
    all-js.php?file=scripts:11 Uncaught ReferenceError: MivaEvents is not defined
    at Object.jsPROD (all-js.php?file=scripts:11)
    at all-js.php?file=scripts:2
    at Object.init (all-js.php?file=scripts:2)
    at all-js.php?file=scripts:21

    All the best André Loutchko aka Protos
  • Ron Frigon
    Mighty Mivite



    • Dec 2009
    • 651

    #2
    I've run into this issue when using "defer" on script tags. Things weren't loading in the order they needed to be. Check your PROD page and look for defer on your scripts and try removing the "defer".
    Ron Frigon
    Jedi Webmaster Obi-Ron Kenobi

    Comment

    • Protos
      Mivite

      • Mar 2012
      • 234

      #3
      Thanks, I will try it out. I thought that defer was a must in order to please Page Speed Insights and Google :-). But as you say some scripts do not fire at once or give other headaches. Cheers!

      Comment

      • Protos
        Mivite

        • Mar 2012
        • 234

        #4
        Thanks Ron, it helped! My related products are visible now. And the console error "errors MivaEvents is not defined " are gone as far as I see... :-)

        Comment

        • Ron Frigon
          Mighty Mivite



          • Dec 2009
          • 651

          #5
          Nice! That's the problem with using defer. Everything has to defer in the right order...

          Cheers!
          Ron Frigon
          Jedi Webmaster Obi-Ron Kenobi

          Comment

          • lesliekirk
            Super Moderator











            • Aug 2008
            • 9290

            #6
            Originally posted by Protos View Post
            Thanks, I will try it out. I thought that defer was a must in order to please Page Speed Insights and Google :-). But as you say some scripts do not fire at once or give other headaches. Cheers!
            And trying to make Google happy is a real pain in the rear...
            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: X | Facebook | Pinterest

            Comment

            • Ron Frigon
              Mighty Mivite



              • Dec 2009
              • 651

              #7
              And trying to make Google happy is a real pain in the rear...
              Seriously... I would try and add the defer back to whatever doesn't break anything. Then maybe async the rest.
              Ron Frigon
              Jedi Webmaster Obi-Ron Kenobi

              Comment

              Working...
              X