title: set jquery loader when timeout (window.setTimeout)
body: <p>I now have the following functionality in my jQuery file:</p>
  
  <pre><code>var timer;
  var delay = 1500; // 1,5 second delay after last input
  
  $("#qr_data").bind("input", function (e) {
      window.clearTimeout(timer);
      timer = window.setTimeout(function(){
          // get qr code data
          var qr_data = $('#qr_data').val();
  
          var data = getVCardData(qr_data);
  
          $("#helpqrcode").modal("hide");
  
  
      }, delay);
  });
  </code></pre>
  
  <p>As you can see I have a delay of 1,5 second. Is it possible that I can show an image loader while the 1,5 second? In my HTML I have an image like this:</p>
  
  <pre><code>&lt;img id="loading" style="display:none; width:200px;" alt="loader" src="recourses/imgs/loader.gif" /&gt;
  </code></pre>