When using $ (document ) . height()
to get the document height, an issue is present when developer tools are initially open.
The height will be too low, such that when developer tools are closed, the height returned by jQuery does not cover the full document height.
What can be done to work around this issue so that when developer tools are open and the document is opened, the height is correct?