Grow your CSS skills. Land your dream job.

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.

*May or may not contain any actual "CSS" or "Tricks".