The orientation change event isn't entirely reliable. The sequence of events is inconsistent across browsers, and orientation change even isn't even always present.
I would recommend using resize instead.
You can also use CSS media queries, but, again, I would advise against using orientation change, and use device width instead.