title: Mobile scroll fires jQuery resize event - (it only fires when using mobile, ok in browser viewport)
body: <blockquote>
    <p>This is my code here it works fine on browser but not on mobile, am
    not that expert in jQuery so if there is any mistake, do forgive me.ty</p>
  </blockquote>
  
  <pre><code>var width = $(window).width(), height = $(window).height();
              $(window).on('resize', function() {
  
                  if($(window).width() != width &amp;&amp; $(window).height() != height)
                  {
                      var width = $(window).width(), height = $(window).height();
  
                      //do something here;
                  }
              });
  </code></pre>