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

Pre-load all images #19

Open
themakshter opened this issue May 15, 2018 · 1 comment
Open

Pre-load all images #19

themakshter opened this issue May 15, 2018 · 1 comment
Assignees
Labels
enhancement New feature or request hacktoberfest label to signify tasks fit for hacktoberfest (https://hacktoberfest.digitalocean.com/)

Comments

@themakshter
Copy link
Member

Instead of returning promises, which seems a bit more complicated, it might be easier and better to pre-load the images at the beginning. This will mean going over the map object we receive and creating an array of promises. Once all of them have been resolved, we can then draw images without worrying about anything.

@themakshter themakshter self-assigned this May 17, 2018
@themakshter
Copy link
Member Author

themakshter commented Jul 15, 2018

This is not urgent, but still adding some resources:

Although we switched to using snap.svg it has a load function which can be used to load the images.

Snap.load
StackOverflow question

@themakshter themakshter added hacktoberfest label to signify tasks fit for hacktoberfest (https://hacktoberfest.digitalocean.com/) enhancement New feature or request labels Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request hacktoberfest label to signify tasks fit for hacktoberfest (https://hacktoberfest.digitalocean.com/)
Projects
None yet
Development

No branches or pull requests

1 participant