Link javascript with CSS media query breakpoints
Some articles:
http://seesparkbox.com/foundry/breakpoint_checking_in_javascript_with_css_user_values
- Adding generated content with the property being a text reference to the size - uses the transitionEnd event referred to in
http://www.paulrhayes.com/2011-11/use-css-transitions-to-link-media-queries-and-javascript/
This is not supported in IE9, but this article http://adactio.com/journal/5414/ gives a technique that will link the javascript and media queries on load.