title: How to get viewport size in jquery-3?
body: <p><code>$(window).height()</code> used to return the height of the browser viewport window, and <code>$(window).width()</code> was used for browser window width.</p>
  
  <p><code>$(window).height()</code> now just returns the same value as <code>$(document).height()</code>, i.e. the height of the whole page. </p>
  
  <p>What is a proper way to acquire viewport sizes now in jquery?</p>