Make sure the IdM params are fetched only after DOM ready.