iOS Safari URL bar delays

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

  1. macrumors newbie

    Joined:
    Jan 25, 2012
    #1
    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: test.acousticnoodles.net

    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

    thread starter macrumors newbie

    Joined:
    Jan 25, 2012
    #2
    temporary fix

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

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


    JS
    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/ >';
    d1.className="theRest";},1000);


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

Share This Page