Miko Meow
Miko Meow
> But if we allowed a user to specify a their own function, that would be more in keeping with other customization in Smoosic. Love it! > Good idea. Also...
Thanks :) I'm noticing in `_setModifierBoxes` (which takes ~3s on Bilongo) a lot of time is spent with Sizzle queries, it looks like in that method you could replace with...
@AaronDavidNewman Nice, glad to hear that helped :) The zoom update sounds like a major win, I imagine that'll make it nearly instantaneous after the initial render 🚀
It seems like changing viewport (resizing the window) should also not need a re-render?
Another thought comes to mind (inspecting the performance tab on chrome)... is it possible to not add the SVG to the screen, until all the sub-elements (notes, staves, ect) have...
Using DocumentFragment does improve performance, as it prevents page reflows: https://blog.hao.dev/web-api-appendchild-v-s-createdocumentfragment As far as how much it would improve performance, it's hard to say! But, if it's easy to replace...