There are js functions to get browser size, window width and scroll position. Is there anything that quickly allows you to interrogate the total page size or weight?
Having a google - I can't see anything obvious. Clearly, you can view this using dev tools see below - but my end application requires that I display this within the page after load.