Skip to content

Instantly share code, notes, and snippets.

@miketaylr
Created September 25, 2013 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save miketaylr/6701828 to your computer and use it in GitHub Desktop.
Save miketaylr/6701828 to your computer and use it in GitHub Desktop.
<meta name="viewport" id="nypviewport" content="" />
<script type="text/javascript">
var mvp = document.getElementById('nypviewport');
if (screen.width <= 640) {
mvp.setAttribute('content','width=device-width, initial-scale=1');
}
</script>
@danielfilho
Copy link

effective js is effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment