DAR-1184, resolve promise after JS assets are loaded into DOM