quil

reefersleep 2016-05-16T06:23:25.000026Z

@szymon_k: thanks for your suggestion 🙂 My current solution is to show and hide the different sketches with css. My actual problem, which I failed to express initially, is that all the sketches are mounted and running in the DOM/JavaScript, even if they aren't showing, which I fear is a ressource hog. I'm not sure how Secretary would help me with this.

reefersleep 2016-05-16T06:23:30.000027Z

Or if.

reefersleep 2016-05-16T06:26:29.000028Z

I'm not sure if it is a ressource hog, or if my new, used laptop is just slow and fluctuating a bit in display power.

reefersleep 2016-05-16T06:27:42.000029Z

So maybe a more apt question would be; Does display: hidden reduce or completely remove the computational need of a quil sketch? (I'm guessing no!)

szymon_k 2016-05-16T08:01:55.000031Z

you should really only have quil sketches in the DOM if you show them, even if they are hidden they still run their logic, so you are doing computations for nothing

szymon_k 2016-05-16T08:02:21.000032Z

you should really try dynamically adding/removing sketches from DOM

szymon_k 2016-05-16T08:03:19.000033Z

this should be fairly easy with reagent though - exactly the same as you would handle changing img tags depending on some radio buttons, or anything like that