O'Reilly logo
  • 5a72d177 a323e5f8 thinks this is interesting:

.clientWidth

From

Cover of Responsive Web Design, Second Edition

Note

Or probably window.matchMedia (but that might require polyfill for lesser browsers).