Skip to content

Instantly share code, notes, and snippets.

@grantmiller
Created August 22, 2013 23:10
Show Gist options
  • Save grantmiller/6313884 to your computer and use it in GitHub Desktop.
Save grantmiller/6313884 to your computer and use it in GitHub Desktop.
LP Mobile HTML Plugin meta viewport for responsive sites
<script type="text/javascript">if(window.screen.width <= 740){ document.write('<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">');}</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment