I'm cheekily seeking a line or two of code on the fly here:
Could someone be kind enough to provide code to place in the head section of html doc that says if mobile then do not load JS?
This is being used in conjunction with the following CSS media query:
<link rel="stylesheet" type="text/css" media="only screen and (max-device-width: 480px)" href="m/styles_mobile.css" />
So I'm looking for a piece of code that is based on the same rule: media="only screen and (max-device-width: 480px)"
Would be very grateful
See Question&Answers more detail:os