Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Firefox 3 media queries not working #29

Closed
bokus opened this issue Mar 23, 2012 · 0 comments
Closed

Firefox 3 media queries not working #29

bokus opened this issue Mar 23, 2012 · 0 comments

Comments

@bokus
Copy link

bokus commented Mar 23, 2012

I still have clients using FF 3 and it does not support @media, so I added at the end:

<script> // Respond.js for FF<3.5 if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ var ffversion=new Number(RegExp.$1); if (ffversion<=3.5){ var headID = document.getElementsByTagName("head")[0]; var respondNode = document.createElement('script'); respondNode.type = 'text/javascript'; respondNode.src = 'js/libs/respond.min.js'; headID.appendChild(respondNode); } } </script>

and now working with FF 3 (didn't check below)

not sure if it's the best way to deal with it...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants