iOS Safari URL bar delays

Discussion in 'Web Design and Development' started by JBsea, Dec 16, 2012.

  1. JBsea macrumors newbie

    Jan 25, 2012
    On my website, the iOS Safari URL bar delays (hangs around) for approx 5 secs longer when the "Reader" appears in the bar. I've tried several failed suggestions on how to work around this annoyance which cuts off a good 40px or so from the top of my site:

    Does anyone know any HTML, CSS, or JS code for stopping the iOS Safari URL bar from hiding the top of my website (or, I guess, in other words, disabling the "Reader"?)

    using iPhone 4, iOS 6.0.1
  2. JBsea, Dec 17, 2012
    Last edited: Jan 1, 2013

    JBsea thread starter macrumors newbie

    Jan 25, 2012
    temporary fix

    So, I have a temporary JavaScript fix: innerHTML inside a setTimeout() function:

    <div id="aboutMain" class="theRest">

    var d1 = document.getElementById("aboutMain");

    setTimeout(function(){d1.innerHTML = '<p class="titleTop">About</p><p><em>acoustic:</em> relating to or being a musical instrument whose sound is not modified electrically</p><br/ >';

    Let me know if you come across anything that works better.

Share This Page