Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Use object url for image previews #487

Merged
merged 6 commits into from
Jan 24, 2019
Merged

Conversation

keligijus
Copy link
Contributor

Using FileReader for previews slows down the editor because it's using base64 encoded file. Object URL has better performance, the editor is no longer laggy or freezing while an image is being uploaded.

Please note, that I wasn't able to fix the broken test. If it's possible I would highly appreciate some guidance from the maintainers on fixing the test.

Copy link
Owner

@linkesch linkesch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for you PR. There are some cosmetic changes to be made.

Otherwise I fixed the failing test, but I don't know how to merge it into your PR. Maybe you can merge it into your branch. The fix is here: 1a29ffb

src/js/images.js Outdated Show resolved Hide resolved
.bowerrc Outdated Show resolved Hide resolved
@keligijus
Copy link
Contributor Author

Thanks for the test.

Changes are in the latest commit. I hope it's not too messy with multiple commits.

@linkesch linkesch merged commit 21719df into linkesch:master Jan 24, 2019
@linkesch
Copy link
Owner

thanks

@linkesch
Copy link
Owner

@all-contributors please add @keligijus for code

@allcontributors
Copy link
Contributor

@orthes

I've put up a pull request to add @keligijus! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants