SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    chrome update of div problem

    The code is a simple adding to a div's scrolltop with this code
    div.scrollTop+=value

    The div has several hundred k of html text, and when the above code is run, there's a one second lag before it updates, as if the div is taking a long time to process.
    However, if the same code is called from within a setInterval of maybe 250ms, after the one sec lag, updates then flash up instantly, indefinitely, showing that the div can be processed fine. I have read up about what causes reflows repaints etc but cannot work out how to get the instant effect without the lag in the timer or ideally outside the timer, its infuriating! thanks

  2. #2
    SitePoint Member
    Join Date
    May 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    solved


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •