There is a slider . On a mobile phone, the slider works correctly only when you first open the page. When updating the page slider does not work.
Js:
$(document).ready(function() { /* другие скрипты */ $(window).on("load", function(){ $(".owl-carousel").owlCarousel({ items: 1, loop: true, autoHeight: true, smartSpeed: 300, mouseDrag: false, pullDrag: false, nav: true, navText: "" }); }); }); If $(window).on("load") rendered as $(document).ready() , then everything works when the page is updated. Why can this happen?