• Resolved alexandraqb

    (@alexandraqb)


    Hello,

    Firstly thank you for a great plugin, I have been using it for sometime, however the more I learn, the less I know.

    Today I have found an error on my website.
    When I ‘Right Click’ to ‘Inspect Element’ on any page of my website, I get one to two errors that state.

    Uncaught TypeError: document.querySelectorAll(…).forEach is not a function
    Uncaught TypeError: a.querySelectorAll(…).forEach is not a function

    autoptimize_6044e3a….js:35 Uncaught TypeError: document.querySelectorAll(…).forEach is not a function

    I have no idea what this means, or how to fix the error.
    Also when sharing content on Google Plus the snippet information such as product titles do not show. Is this related?

    Any help would be greatly appreciated.
    Thank you for your time.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    had a quick look and I’m not able to reproduce in Firefox or Chrome on my Ubuntu laptop, might only happen for logged in users. moreover if it only gets triggered after inspecting an element, this is _very_ unlikely to be a problem for your visitors.

    regarding sharing content on G+; that’s probably because you’re inline all CSS, which results in the meta-tags being pushed down. best fix would be to switch to the (less simple) “inline & defer CSS”, cfr. AO’s FAQ for more info on how to do that.

    hope this helps,
    frank

    Thread Starter alexandraqb

    (@alexandraqb)

    Hi Frank,

    Thank you for replying.
    I can confirm the errors do not show on Firefox, It appears to only happen when using Opera.
    The fact you have said this is very unlikely to cause a problem to my visitors, I think I will just leave things as they are.

    Also in regards to sharing content on G+, I really do not feel brave enough to play around with the “inline & defer CSS” option, I did however briefly disable the Autoptimize plugin to see if this would effect the results of sharing Products and the snippets remained the same.

    I guess it’s just a case of trial and error.

    Thank you again for taking the time to reply to me.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, enjoy the rest of the weekend! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Uncaught TypeError: a.querySelectorAll(…).forEach is not a function’ is closed to new replies.