Added a check to see if cookies are enabled before doing location.reload(true);
Added conditional to check if window.outerWidth is supported as it was reported that the cookie had a value of 'undefined' in IE.
Changed Math.max(screen.width,screen.height) to window.outerWidth to measure width width instead of screen width again. Reasons why jQuery's (window).width() and window.innerWidth weren't working on iOS explained in First, Understand Your Screen
Initial public release
In the plugin, changed (window).width() which requires jQuery to Math.max(screen.width,screen.height) because it was reporting an incorrect size on iOS.
This is an ExpressionEngine implementation of Simple-RESS by Matt Stauffer.