Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create download blob on-demand #12

Open
ancientjpeg opened this issue Mar 10, 2025 · 2 comments
Open

Create download blob on-demand #12

ancientjpeg opened this issue Mar 10, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@ancientjpeg
Copy link
Owner

Not sure what the best way to do this is. Currently, a new blob download href is being generated every time the text changes, which is obviously not ideal. ChatGPT recommended something like adding an ephemeral tag to perform the download but I don't like that. See if there's a way to generate that blob URL on demand, or otherwise determine if blob url generation is cheap enough to ignore this.

@ancientjpeg ancientjpeg self-assigned this Mar 10, 2025
@ancientjpeg ancientjpeg added the enhancement New feature or request label Mar 10, 2025
@ancientjpeg
Copy link
Owner Author

Looks like it might be slow: URL.createObjectURL() is slow

@ancientjpeg
Copy link
Owner Author

ancientjpeg commented Mar 10, 2025

First answer here is the hidden <a> tag, but looks like there might be some other solutions here: JavaScript blob filename without link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant