Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website

Leave a comment

Get viewport size width and height with javascript – Javascript – Blog / Andy Langtons Website.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *