• Resolved kostjaz

    (@kostjaz)


    Hello all,
    if I activate also to optimize the Java Scripts in the plugin settings, wordpress is not fully working. On pages where an animation (elementor) is used, there is the following eror:

    autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5526 Uncaught TypeError: Cannot read property ‘querySelector’ of null
    at cbpHorizontalSlideOutMenu._init (autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5526)
    at new cbpHorizontalSlideOutMenu (autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5518)
    at autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5601
    at autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5602
    at autoptimize_56b1d8eea3943eb630a3bf2118cba33f.js:5603

    The animated elements are not seen on the page.

    Any idea how to solve it? If needed I could be your beta tester ??
    Thanks much for your great work!
    Konstantin

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

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

    (@optimizingmatters)

    well, I see the same error when not autoptimizing (by adding ?ao_noptimize=1 to the URL);

    
    Uncaught TypeError: Cannot read property 'querySelector' of null
        at cbpHorizontalSlideOutMenu._init (frontend.min.js?ver=1.1.0:359)
        at new cbpHorizontalSlideOutMenu (frontend.min.js?ver=1.1.0:349)

    so fix the problem there and all should be fine ??

    hope this helps,
    frank

    Thread Starter kostjaz

    (@kostjaz)

    Hello Frank,
    thanks for your message. You are right. I was thinking the animation is not working because of the “Uncaught TypeError”, but there must be something else blocking it by autoptimize.

    Actually, I do not care for this error, for me is important that the page is working like here: https://makis.world/ext/20-tipps-fuer-mehr-umsatz-lp/?ao_noptimize=1

    But with the normal link, without adding “?ao_noptimize=1”
    Any ideas?
    Thanks
    Konstantin

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, the problem is that JS errors like that block the execution of code that follows, hence the root-cause solution is to fix that JS error. alternatively you could try to add frontend.min.js to AO’s comma-separated JS optimization exclusion list.

    Thread Starter kostjaz

    (@kostjaz)

    Hello,
    thanks much for your fast replies!

    This error is produced by the plugin “NavMenu Addon For Elementor”, deactivating it solves the problem.
    Thanks much
    Konstantin

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome Konstantin, enjoy the weekend! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: Cannot read property ‘querySelector’ of null’ is closed to new replies.