Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: preload MFE Config API response in index.html
Recently, a capability was added to this MFE that allows it to load configuration from an the LMS's MFE Config API instead of requiring it to be baked-in to the webpack build. When enabled, though, this capability blocks any render of the MFE until the Config API responds. So, in order to minimize the amount of time that the MFE is waiting on the Config API response, we preload the API response via a in the section of index.html, which recommends to the browser to immediately begin loading the MFE Config API response as soon as index.html is loaded. Otherwise, the Config API wouldn't be called until React and frontend-platform are loaded. Recently, a capability was added to MFE that allows it to load configuration from an LMS API (the "MFE Config API") instead of requiring it to be baked-in to the webpack build. Related to: * https://github.com/overhangio/2u-tutor-adoption/issues/87 * openedx/wg-frontend#103
- Loading branch information