Stylin’ with CSS

The Blog and Books of Charles Wyke-Smith

Add and remove events and JavaScript and CSS files with media queries

by Charles Wyke-Smith

The Media Query Manager is a jQuery script that will load files and register events on to elements based on a stated screen width range for each file. It does this when the page is first loaded and every time the screen width is resized above or below a media query break point.

You can set the screen width range over which files are loaded and events are registered. Files are automatically unloaded if the browser is outside of their stated screen width range.

This code is in an early state so proceed with caution! I welcome all feedback.

Read the documentation

Leave a comment

More posts