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

Add a promise-driven initAsync method #1191

Merged
merged 1 commit into from
Sep 30, 2018
Merged

Conversation

starwed
Copy link
Member

@starwed starwed commented Sep 23, 2018

This allows the loading of resources (such as web assembly modules, which were the main motivation) before initializing Crafty. Specifically, it supports a pattern where async loaders might want to modify Crafty directly.

It also builds in support for waiting for the document to load.

Allows the loading of resources (such as web assembly modules)
before initializing Crafty.
@starwed starwed merged commit 2db3572 into craftyjs:develop Sep 30, 2018
@starwed starwed deleted the init-async branch September 30, 2018 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant