title: How to track when mousemove ends
body: <p>I would like to call a function when <code>mousemove</code> ends.</p>
  <p>I have an <code>onmousemove</code> event listener like below which fires too many times:</p>
  <pre class="lang-js prettyprint-override"><code>window.onmousemove = (e) =&gt; { console.log(e) }
  </code></pre>
  <p>I would like to reduce calling the function too often to prevent high load.</p>
  <p>For example, call the function once when the cursor stops.</p>
  <p>If the are any other solutions I will be glad to try them as well.</p>