@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.
Or if.
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.
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!)
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
you should really try dynamically adding/removing sketches from DOM
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