-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Add prefer-blob-reading-methods
rule
#2065
Add prefer-blob-reading-methods
rule
#2065
Conversation
make sense 👍 |
Can you fix the linting problem? |
It won't trigger on |
There are times i think even readAsDataURL is even as equally bad. and most often it's also better to use typed arrays instead of base64 that's ~33% larger in since. |
I wasn't aware of |
This discussion is better for the issues section so it doesn't get lost. I agree that |
You get a point there! However... if it's a disc based file. then maybe it don't matter as much. Want to quote this guy on SO:
|
On the + side. if you use and it's so much better than reading a hole video as base64 which would be huge. |
I see So depending on use case, it's not a replacement for |
Fixes #1269
I opted to allow
new Response(blob).arrayBuffer()
because it's difficult to flag without type-checking (blob
might be a typed array, stream, etc) and because it has better browser support than the blob methods.