Support » Plugin: Zedna WP Image Lazy Load » Some Pages throw JS Error

  • Resolved janadams76

    (@janadams76)


    After the last update from 3 days ago it seems that there are a few things not working anymore as expected caused by a javascript error (Not on all pages, but on some). I will try the last version again as a workaround, but this is fyi…

    I now get the following error in the console:

    image_lazy_load.js:24 Uncaught TypeError: image.className.split is not a function
    at myClasses (image_lazy_load.js:24)
    at SVGSVGElement.<anonymous> (image_lazy_load.js:118)
    at Function.each (jquery.js:2)
    at a.fn.init.each (jquery.js:2)
    at HTMLDocument.<anonymous> (image_lazy_load.js:117)
    at i (jquery.js:2)
    at Object.fireWith [as resolveWith] (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.K (jquery.js:2)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Same problem here. I make some tests and I think this is cause only when you have “svg” elements in the page.

    SVG don’t have the property className so some code modifications needs to be done.

    Hi dvazquez260376,

    The 1.6.1 Version works flawless without code modifications.
    So i prefer that simple workaround instead for now (until this is getting fixed).

    Plugin Author Radek Mezulanik

    (@zedna)

    Hey guys, sorry to hear that, i´ve release a small hotfix to prevent this console error.
    Hope you will be happy now 🙂

    Hi Radek,

    For me is working now. Many thanks for the hotfix!!

    Awesome!
    Thanks for the quick hotfix Radek!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some Pages throw JS Error’ is closed to new replies.