IE8 support - defensive resize check