News for hackers. Stuff that matters.
Re:Responsive JavaScript by matthewgifford on Wednesday February 12, 2014 @02:59AM (#7223127)
The one problem I've found with this approach is making sure that the CSS and JS breakpoints stay in sync as a site is maintained. At my previous job, we came up with a way of changing JS behavior based on CSS changes to DOM objects. http://blog.cloudfour.com/behavioral-breakpoints/
Re:Responsive JavaScript by matthewgifford on Wednesday February 12, 2014 @03:02AM (#7223135)
I don't think it's mentioned in the blog post, but we used csswatch jQuery plugin to watch for changes. https://github.com/leifcr/jquery-csswatch/