jQuery obtenga altura del documento
let height = ($(window).height() || $("body").height());
Agreeable Addax
let height = ($(window).height() || $("body").height());
$("#YOUR-ELEMENT").height();