Answer the question
In order to leave comments, you need to log in
How to make js code work in IE 11?
I decided to put a regular image slider on the site under Magento 2.2.
In all browsers, the slider works fine, except for IE 11.
Actually, this code does not run there:
<script type="text/javascript">
var slider = new IdealImageSlider.Slider('#slider_news');
slider.addBulletNav();
slider.addCaptions();
</script>
</div>
$(document).ready(function() {}
Answer the question
In order to leave comments, you need to log in
<script type="text/javascript">
;(function ($) {
'use strict';
$(document).on('load', function () {
window.slider = new IdealImageSlider.Slider('#slider_news');
window.slider.addBulletNav();
window.slider.addCaptions();
});
}(jQuery));
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question