The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

RESS & Responsive Web Design: What scripts are available for conditional loading based on width?

  • # May 18, 2013 at 7:14 pm

    Hello all,

    Does anyone have any suggestions on the best techniques/scripts for server side conditional loading. I know of Categorizr and it seems very straight-forward although it’s no longer supported or developed. Any feedback is greatly appreciated. Thanks!

    =====Example Markup from Categorizr=====

    < ?php if (isMobile()) { ?>
    This device is a mobile

    < ?php } ?>

    < ?php if (isTablet()) { ?>
    This device is tablet

    < ?php } ?>

    < ?php if (isDesktop()) { ?>
    This device is a desktop

    < ?php } ?>

    < ?php if (isTV()) { ?>
    This device is a TV

    < ?php } ?>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed