• Resolved Peter Hardy-vanDoorn

    (@petervandoorn)


    Yes, I know… IE 11… client uses it… what can I do?

    So anime.min.js throws an error on Windows 10 in Internet Explorer 11

    SCRIPT5007: Object expected
    anime.min.js (8,14120)

    I notice you’re enqueueing v3.0.1 of anime, but swapping that for the latest version, 3.1.0, doesn’t make any difference.

    This seems to be a known error – https://github.com/juliangarnier/anime/issues/123

    Is there anything you can do?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Onur Oztaskiran

    (@sj_o)

    Hi Peter,

    I was actually expecting something worse when you mentioned IE11 because Kioken Blocks has no support for IE11 whatsoever, other than some styling fixes. Due to the modern methods KB is built with, IE11 can’t handle any of them and I chose to rather spend my time working on adding new blocks, improving the KB further instead of spending days of work just to support IE11 and loads of extra resources and lines of code to the source code for the sake of it.

    Unfortunately I have nothing right now, since the issue is as you mentioned is derived from the library itself.

    Sorry :/

    Thread Starter Peter Hardy-vanDoorn

    (@petervandoorn)

    Hi and thanks for the quick response!

    I understand your position, however IE11 is kinda current – it is still included in Windows 10. Although it is being replaced by Edge, it’s EOL isn’t for another couple of years, and you know what corporations are like for not updating their systems!!

    I know there’s not much you could do as it’s a 3rd party library, but perhaps you could add your voice to that issue on github?

    Cheers

    Plugin Author Onur Oztaskiran

    (@sj_o)

    Hi Peter,

    Absolutely. I’ll see what I can do about it with following up on the issue with the developer.

    Kioken Blocks used to use GSAP which was more reliable but then we bumped into licensing issue with WordPress rules, so had to switch to Anime.js.

    I hope I’ll have better news on this soon.

    Thank you!
    Onur

    Thread Starter Peter Hardy-vanDoorn

    (@petervandoorn)

    Thanks ??

    In the meantime, do you have a way of killing anime just on IE11?

    Plugin Author Onur Oztaskiran

    (@sj_o)

    Hi Peter,

    Haven’t tested, but the following snippet should do it.

    Let me know.

    Thanks!
    Onur

    function kioken_dequeue_anime() {
    
      $ua = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8');
    
      if (preg_match('~MSIE|Internet Explorer~i', $ua) || (strpos($ua, 'Trident/7.0') !== false && strpos($ua, 'rv:11.0') !== false)) {
          // do stuff for IE
          wp_dequeue_script( 'anime-js' );
      }
    }
    add_action( 'wp_print_scripts', 'kioken_dequeue_anime', 100 );
    Thread Starter Peter Hardy-vanDoorn

    (@petervandoorn)

    Unfortunately anime-js is required by scrollmagic-js, anime-scrollmagic-js & kioken-blocks-frontend-utils and dequeueing those basically borks the whole page!!

    Never mind, thanks.

    Plugin Author Onur Oztaskiran

    (@sj_o)

    Hi Peter,

    Sorry that I couldn’t help more on the matter right now :/

    Thanks,
    Onur

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error in anime.min.js on IE11’ is closed to new replies.