Convert delite use the lie promise library.

event.loadDeferred is replaced by an event.setLoadDeferred() method,
which can take either a Promise or a plain value.