by Kevin Schroeder | 4:39 pm

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.

Comments

No comments yet...

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.