Announcement

Collapse
No announcement yet.

Console errors MivaEvents is not defined on my Prod page

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

    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

    #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


      #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


        #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


          #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


            #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: Twitter | Facebook | FourSquare | Pinterest | Flickr

            Comment


              #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