The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Retrofitting Responsiveness : Plugin Issues Reply To: Retrofitting Responsiveness : Plugin Issues


Hi @steven_gardner

If your only looking to hide and show that section then i’d be tempted to use a mediaquery in the css to hide/show based on a threshold,

What you are describing can be done because both those plugins support some kind of destroy method but the issue with doing that is that the content will still remain in the page, just not formatted by the plugins,

If it essential that you must unload the plugins at a given breakpoint then i’d recommend taking a look at the method, this method will evaluate a given mediaquery in javascript and return true or false if the mediaquery is satisfied, you can then manipulate the dom or unload plugins based on that result,

Documentation for Modernizr can be found here: