support requestAnimationFrame
Support window.orientation property.