Conditional Loading for Responsive Designs — 24 ways

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.”

Conditional Loading Snippet

“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.”

24 ways: Conditional Loading for Responsive Designs

One thought on “Conditional Loading for Responsive Designs — 24 ways

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s