Skip to content

Most performant way to replace full graph? Also: KitchenSink from webpage != demo in joint+ sources #2751

Discussion options

You must be logged in to vote

I was now able to reduce the load time drastically by preparing the paper + new graph "offscreen" using a parent HTML element not attached to the DOM root. Only after the paper is fully created, I attach this element to the "live" DOM e voila: only one costly "recalculate style" call instead of many of such calls, as it was before. Is there any other source or demo using "offscreen" preparation of complex JointJS DOM for more inspiration?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MariusSchmidt
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants