Revert "Fix bug in iPad and Android's browsers. Some browser call onResize() multiple times and cause web page refreshing."

This reverts commit 87386cdcd4ed6de1b3bc27bee8faf7c64c7e6332.