infinite scrool does not work with jquerymobile.js file

infinite scrool does not work with jquerymobile.js file

  I need infinitive scrool with my jquery mobile project
my infinitive scrool codes work well but when i added   jquery.mobile-1.2.0.min.js to my page the infinitive code does not works.

this is my code.This code does not work but When i remove jquery.mobile-1.2.0.min.js it works 

  1. <script src="https://ajax.googleapis.com/ajax
  2. /libs/jquery/1.7.2/jquery.min.js">
  3. </script>
  4.  
  5. <script src="https://ajax.aspnetcdn.com/ajax/
  6. jquery.mobile/1.2.0/jquery.mobile-1.2.0.min.js">
  7. </script>
  8. <script type="text/javascript">

  9. $(window).scroll(function(){
  10. if($(window).scrollTop() == $(document).height()
  11. - $(window).height()){
  12.  
  13. alert("it works");
  14. }
  15. });
  16. </script>