Consider preloading Config API request in all MFEs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- frontend
Direzione di ricerca
Inizia esaminando i riferimenti alla memorizzazione nella cache di Config API in frontend-platform's src/initialize.js e src/auth/LocalForageCache.js, quindi analizza la proposta di preloading in frontend-app-account PR 632. Verifica innanzitutto con un provider se la configurazione runtime rallenta sensibilmente il caricamento delle MFE; in caso affermativo, la proposta relativa ad account, le modifiche equivalenti in altre MFEs e gli aggiornamenti a frontend-template-application costituiscono l'ambito previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
- We added runtime configuration to frontend-platform, backed by a new LMS API.
- We made tutor-mfe use runtime configuration by default, allowing us to host a pre-built tutor-mfe image (since config values no longer needed to be build into the image).
- I was worried that the extra init-blocking API request (to the Config API) would noticeably slow down page load, so I proposed pre-loading the Config API request in index.html.
- I decided not to merge that, because I realized that that the Config API response is cached in local storage by frontend-platform with a five-minute timeout. So, the Config API will still block the MFE rendering the first time it is loaded, but subsequent loads within a five-minute window would not hit the Config API. Given this, the extra complexity of pre-loading may not be necessary; in fact, it could result in additional requests, since the pre-loading would occur whether or not the Config API response is cached in local storage.
Acceptance
Once the runtime MFE Config API is used by a provider in production, ask that provider whether there is a noticeable slow-down on MFE page loads due to the API.
- If there is, then re-open and merge the pre-loading proposal for the account MFE.
- and open & merge identical pull requests for all other MFEs.
- Also, add this change to the frontend template app.
- Lingua principale
- JavaScript
- Stelle
- 38
- Fork
- 90
- Merge medio
- 3m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openedx/frontend-platform
-
a11y
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
openedx/frontend-platform#745 · 3 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
openedx/frontend-platform#892 · 4 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
openedx/frontend-platform#837 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
openedx/frontend-platform#835 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
openedx/frontend-platform#833 ·
Tutte le issue di openedx/frontend-platform
Issue simili
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
enhancement good first issue severity: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/Static_Chess#163 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] Account menu (footer ⚙) doesn't dismiss on outside click — stays open and covers the Bot listAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Fei2411/DeepSeek-Bot#1693 ·
-
area-templates triage:bot-seen triage:needs-human
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
microsoft/aspire#22356 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno