I'm wanting to write to the console the size of a given page. Note that if the page is gzipped, I want to know the gzipped size and the ungzipped size. I also want to be able to do this for any ajax requests.
If there is a way of doing this without plugin that would be great.