ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Getting respond.js to work with EE

June 08, 2011 6:35pm

Subscribe [3]
  • #1 / Jun 08, 2011 6:35pm

    bytte

    47 posts

    I’m making a responsive web design in EE and everything works great. However, for the responsiveness to work in older IE versions, I’m using a script called respond.js (https://github.com/scottjehl/Respond). For some reason I can’t get respond.js to work in EE.

    I’m guessing it has something to do with this part of the respond.js docs:

    Respond.js re-requests the CSS files using Ajax and parses the text response from there. Be sure to configure your CSS files’ caching properly so that this re-request doesn’t actually go to the server.

    Is anyone in the know of what that means and how EE handles caching of style sheets?

    I’m currently using this code to link to stylesheets:

    <link rel="stylesheet" href="{stylesheet=_/screen}" media="all" />

    Any help is appreciated!

  • #2 / Jun 09, 2011 3:57am

    Natetronn

    161 posts

    Have you tried linking to the stylesheet directly say in a /css folder for example?

    So something like this:

    <link rel="stylesheet" href="/css/screen.css" media="all" />
  • #3 / Jun 09, 2011 4:11am

    bytte

    47 posts

    Thanks Natetronn. That did the trick. Obviously, what was I thinking… 😊

  • #4 / Jun 09, 2011 4:14am

    Natetronn

    161 posts

    Sure, don’t mention it. Glad it worked for you.

  • #5 / Jun 09, 2011 12:55pm

    Sue Crocker

    26054 posts

    Thanks for the assist, Nate!

    bytte - If anything else comes up, please do let us know in a new thread..

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases