Skip to main content
Platform
Language

Lazy Import of the Engine Module

Code Splitting#

Keep in mind that the CreativeEngine bundle has a substantial size. Depending on your use case, it might make sense to delay loading of the module, using a dynamic import statement:

Consult your bundler's documentation for more information:

You can also make use of code splitting in the browser, without a bundler. It works in the same way, but you would load our code from the CDN.