For you responsive web designers: excellent post from 24 ways, by Jeremy Keith —
Need to keep your site friendly for mobile devices, and yet load rich content for devices that can handle it? Employ an
if statement in your script.
Very simple to implement. Excellent how to and demo included.
“If I only want to run that search when there’s room for a sidebar, I can wrap it in an if statement.”
“If the browser is wider than 640 pixels, that will fire off a search for news stories about cats and put the results into the newsresults element in my markup.”