Skip to content

defer canvas creation#56

Merged
jerch merged 7 commits intomasterfrom
defer_canvas_creation
Aug 1, 2023
Merged

defer canvas creation#56
jerch merged 7 commits intomasterfrom
defer_canvas_creation

Conversation

@jerch
Copy link
Copy Markdown
Owner

@jerch jerch commented Jul 11, 2023

Should fix #55.

@jerch
Copy link
Copy Markdown
Owner Author

jerch commented Jul 11, 2023

@Tyriar This PR should remove most of the nasty init burden and initialize the canvas & the placeholder lazy. This is not the nicest PR, but gets the job done in local tests. For normal terminal usage w'o any image sequences there should not be any image canvas anymore on the DOM.

Not quite sure how you can test it without going through the whole build burden (the bootstrapping is quite cumbersome I admit) - I can do a local bundle and put the file in a gist for testing, if you want.

Edit: The changes are not that much, thus I dont mind transferring them myself.

@jerch
Copy link
Copy Markdown
Owner Author

jerch commented Aug 1, 2023

@Tyriar The Pr is done. The changes got bigger than anticipated 😸 , whatever - gonna do a last patch release for these here, and apply the code changes in the base repo PR afterwards.

@jerch jerch merged commit 1e1c8bb into master Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lazily create the canvas element

2 participants