• Resolved carlamkt

    (@carlamkt)


    I use Autoptimize but it breaks some of the homepage design. The text at the top of the page in not displayed. I tried chanting the setting, if I activate Add try-catch wrapping, the problem is solved but then the slider and products are not displayed.

    How could I fix it?

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

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

    (@optimizingmatters)

    maybe take a step back first and foremost: first and foremost try to identify what is breaking things by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). based on that we can see what the next steps are ??

    frank

    Thread Starter carlamkt

    (@carlamkt)

    Thank you for your fast answer. I deactivated “Aggregate all linked JS files to have them loaded non-render blocking? If this option is off, the individual JS files will remain in place but will be minified.” and it was solved, although the pagespeed test results are very bad.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, now if “Aggregate all linked JS files” is on (and try/catch wrapping off), what JS errors do you see on the browser console?

    Thread Starter carlamkt

    (@carlamkt)

    I realized that when I deactivate “Aggregate all linked JS files” the sticky header doesn’t work.
    If I activate “Aggregate all linked JS files” the errors are:
    caught ReferenceError: jQuery is not defined
    at <anonymous>:1:1
    at t.activateScript (rocket-loader.min.js:1)
    at rocket-loader.min.js:1
    at t.run (rocket-loader.min.js:1)
    at P (rocket-loader.min.js:1)
    at Object.callback (rocket-loader.min.js:1)
    at t.run (rocket-loader.min.js:1)
    at rocket-loader.min.js:1
    at rocket-loader.min.js:1
    main.min.js:1 Uncaught ReferenceError: jQuery is not defined
    at main.min.js:1

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well ReferenceError: jQuery is not defined indicates jQuery is not available, make sure it is excluded from JS optimization (default exclusion is js/jquery/jquery.js, but depending on theme/ plugins it _can_ be different) and that jQuery is not asynced/ deferred?

    Thread Starter carlamkt

    (@carlamkt)

    It seems it was something about async javascript, I deactivated it and now everything works.

    thank you!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autoptimize broke my homepage’ is closed to new replies.