Add ability for a component to register a callback to be executed when all files from loadImports are loaded.