Skip to content Skip to sidebar Skip to footer

Animation Script Not Working After Ajax Call

I have some problem with my animation script after page call with AJAX. In this case I load that page if opened in mobile screen browser. I have 2 files called index.php and mobile

Solution 1:

You need to redirect the page if you found user using mobile like below. One more thing, You have not added Carousel jquery plugin in mobile.php

<script>
        window.mobilecheck = function() {
           var check = false;
           if(window.innerWidth<768){
               check=true;
           }
           return check;
         }
         if(window.mobilecheck()){
             window.location.href = 'mobile.php';             
         }
</script>

Post a Comment for "Animation Script Not Working After Ajax Call"