Support » Plugin: Autoptimize » error in console “Lazysizes”

  • Resolved Fred17


    I found this error in the console of my website:
    Uncaught ReferenceError: lazySizes is not defined
    at (index):1344
    (anonymous) @ (index):1344

    based on my research, I think it’s due to Optimize plugin which uses Lazysizes.min.js

    Could you help me to resolve this issue.
    Thanks a lot.
    Best regards

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

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


    Salut f14m07 ;
    You seem to have lazyload active in both Autoptimize & Smush, so you should either:

    1. disable it in Smushit OR
    2. disable it in Autoptimize and ensure plugins/wp-smushit/app/assets/js/smush-lazy-load.min.js is excluded from JS optimization

    Hope this helps,

    Thread Starter Fred17


    Thank you for your advice. I only kept Autoptimize for this function. No more mistakes. Thank you very much for your reactivity and your good advice.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘error in console “Lazysizes”’ is closed to new replies.