title: iPad: Time lag between portrait and landscape modes
body: <p>I have an iPad application with HTML5 home screen. I need to create two different design templates for landscape and portrait modes. I use CSS <code>@media</code> with <code>orientation : landscape</code> and <code>orientation : portrait</code>. And it works great for me. But I have a time lag when I change the device's orientation. And as result I can see wrong elements sizes across one or two seconds.</p>
  
  <p>How can I resolve this issue?</p>