added notes about suppressing resize events
edited demo