Binding.scala: Strategy to avoid too many dom-tree updates
问题 In my project scala-adapters I display log entries that are sent over a websocket. As I have no control on how many entries are sent, I am looking for a strategy to avoid that the screen freezes. I created a ScalaFiddle to simulate that: https://scalafiddle.io/sf/kzr28tq This function with these parameters works perfectly: setInterval(1000) { // note the absence of () => entries.value += (0 to 100).map(_.toString).mkString("") } If the interval gets smaller and the String longer - the screen