Skip to content
Adapt.js serves CSS based on screen width.
CSS JavaScript
Find file
Latest commit 19e4b9e May 7, 2014 @nathansmith Fixing a comment.




For more information, see...

This is dual licensed under GPL and MIT.

Feel free to use it however you like. :)


Thanks to:

- Tiff Fehr, for offering feedback when this was just a gist.

- Mathias Bynens, for pointing out document.head is faster than
  document.getElementsByTagName('head')[0] for newer browsers.

- Joey Lomanto, for reminding me to account for scrollbar width.

- Peter Schott, for testing on IE7 in Windows 7 Phone.

- R.A. Ray, for pointing out "initial-scale=1" is needed.

- Jason Beaird & Skully78, for reporting a bug with IE6-IE8.
Something went wrong with that request. Please try again.