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.
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.