This Classic Javascript snippet has proven to be one of my most useful helper scripts I embed at the bottom of a page while designing and developing web pages. The script will output viewport dimensions in px, rem and viewport units when the browser is resized.
This helper script is very helpful to determine where to use a breakpoint. The source is easy to read and easy to hack further. Enjoy it…
Download Viewport Units from Clinton Gallagher’s GitHub Page