iodide-project / iodide

Literate scientific computing and communication for the web
Mozilla Public License 2.0
1.49k stars 143 forks source link

rendering of run all different on chrome and FF #600

Closed bcolloran closed 5 years ago

bcolloran commented 6 years ago

try loading the following in FF and Chrome: https://iodide-project.github.io/iodide-examples/lorenz-attractor-pres.html

In FF, the MD cells render, then the JS stuff updates (as expected) In chrome, after a delay, everything shows up in the viewport in it's final state

i wonder if this has to do with different handling of task queues and schedules under different browsers https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/

see also the stack overflow links https://github.com/iodide-project/iodide/issues/587 about not being able to update the dom within a loop. i wonder if an easy fix would be to have a little setTimeout of a few ms in the eval queue before each eval to "hand control back to the browser" for updating the DOM

hamilton commented 6 years ago

We dug into this a bit today to see what might be causing this issue. Here are our theories:

We'll have to dig in a bit more to see what's going on.

bcolloran commented 5 years ago

i think the iframe has fixed this since the issue was filed! just tested https://iodide.io/notebooks/34/?viewMode=report in FF and chrome, comparable and satisfactory behavior in both cases! :-)