Orientation problem
<p>We handling Landscape and portrait in iphone and android</p>

<pre><code>window.onorientationchange = function() {
if(window.orientation == 0)
{
//Loading portrait content and hiding landscape content
}
else if(window.orientation == -90 || window.orientation == 90)
{
//Loading Landscape content and hiding portrait content
}
};
</code></pre>

<p>Problem is while rotating its taking time to Loading content</p>

<p>Can anyone help me out to fix this issue. </p>
