This is a neat little snippet of JavaScript code to get the size of your viewport on a browser. I’m doing some work with progressive HTML rendering and viewport height is pretty important there. This seems to work. Will be having a longer blog post coming up on the topic of progressive rendering.