SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    190
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    respond.js not working

    Not sure what step I'm missing here, but I have a responsive design and I included respond.js https://github.com/scottjehl/Respond to make ie < 9 work with my media queries.

    The script ( <script src="js/vendor/respond.proxy.js"></script> ) is included in the head http://mcjlandscaping.com/ but ie 8 ( haven't tested 7 or 6 ) doesn't react to the media queries.

    Should I be using a different script?

  2. #2
    Community Advisor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,387
    Mentioned
    45 Post(s)
    Tagged
    12 Thread(s)
    Hi,

    When I visit your site I'm seeing the following error in the console: Uncaught TypeError: Cannot read property 'href' of null respond.proxy.js:4.
    Judging by documentation, I think maybe you should be including respond.min.js, instead of respond.proxy.js

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    190
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks!

    I'm a github noob. I didn't see that file in the zip folder i downloaded. I'll look again. Thanks.

  4. #4
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    190
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have to min file there now instead of proxy. but ie 8 still ignores media queries. Where did you see console errors before? Firebug?

  5. #5
    Community Advisor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,387
    Mentioned
    45 Post(s)
    Tagged
    12 Thread(s)
    No, in the Chrome console.. now I'm seeing a 404 error for the file /js/vendor/respond.min.js

  6. #6
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    190
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    thanks for your help. got the file in the right place and it's working now.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •