title: Only execute JS function on desktop computers (parallax plugin)
body: <p>Is there any way I can restrict the execution (if statement) of javascript so that it only applies to desktop computers, It needs to be off when the user is on a mobile/tablet device.
  Below is the code, however obviously it applies for any device at the moment when the document is ready.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
      main_parallax();
      main_scrolling();
      sauces_slider();
  });    
  &lt;/script&gt;
  </code></pre>
  
  <p>Only the <code>main_parallax();</code> function should be omitted when on a mobile/tablet device.</p>