site: module import waterfall leaves search inert for about 3 s on 3G; add modulepreload for each page type
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 53/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript
- Ambito
- performance
Direzione di ricerca
Read the shared head builder, site/public/index.html, and the reported module import graph; compare the built pages in site/dist/index.html. Add the page specific modulepreload links and update or add a page check that asserts each built page preloads every module it loads. Done when the check passes and, under the stated Fast 3G emulation, shared.mjs finishes within one round trip of app.js.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Why it matters
The homepage is prerendered so it paints fast, but the search box and filters do nothing until the whole ES-module graph and data.js have arrived. A visitor who types in the first seconds sees nothing happen, which is the one interaction the site exists for.
Evidence (at 69387df, Fast 3G / 4x CPU emulation on the local build)
- Resource
responseEnd:app.js1243 ms;search.js,cards.mjs,views.js,owes.js2344-2369 ms (second round trip, discovered only afterapp.jsis parsed);shared.mjs2927 ms (third round trip, imported bycards.mjs);data.js1794 ms (355 KB raw, 79 KB gzip). - Import graph:
app.js->search.js,cards.mjs,views.js;cards.mjs->shared.mjs;shortlist.js->owes.js. site/dist/index.htmlcontains nomodulepreloadlinks (only two font preloads).site/public/index.html:227-229loadsdata.jswithdeferplus two module scripts.
Suggested approach
Have the shared head builder emit <link rel="modulepreload" href="..."> for the exact module set each page type uses (home: 7 files; entry: entry.js, shortlist.js, owes.js; category: category.js, views.js, shortlist.js, owes.js) so every module fetches in parallel with data.js. Optionally fetchpriority="high" on data.js, and consider moving the summary field (about 78 KB of the payload) out of data.js if a slimmer payload is wanted.
Done when
In the same emulation, shared.mjs finishes within one round trip of app.js; a page-check asserts every built page has a modulepreload per module it loads.
- Lingua principale
- JavaScript
- Stelle
- 58
- Fork
- 15
- Merge medio
- 16h 53m
- PR unite (30g)
- 14
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 TMHSDigital/Free-Game-Dev-Assets
-
community marketing priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
TMHSDigital/Free-Game-Dev-Assets#151 ·
I maintainer di solito rispondono entro 1 giorno
-
community marketing priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
TMHSDigital/Free-Game-Dev-Assets#150 ·
I maintainer di solito rispondono entro 1 giorno
-
community enhancement priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
TMHSDigital/Free-Game-Dev-Assets#149 ·
I maintainer di solito rispondono entro 1 giorno
-
community documentation priority: medium
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/Free-Game-Dev-Assets#148 ·
I maintainer di solito rispondono entro 1 giorno
-
site: the Unreal guide is missing from the homepage Guides list, and the hero calls tools "assets"Apertabug marketing priority: medium
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
TMHSDigital/Free-Game-Dev-Assets#147 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di TMHSDigital/Free-Game-Dev-Assets
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
awesome-dsh-plugin/awesome-dsh-plugin#9184 ·
I maintainer di solito rispondono entro 1 giorno
-
CloudredirectAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
NanmiCoder/dsh-agent-teams#277 ·
I maintainer di solito rispondono entro 1 giorno
-
[ordering-review] workshop order graph: 1 confirmed ordering problem, 3 cycles are false positivesAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
githubnext/gh-aw-workshop#4943 ·
I maintainer di solito rispondono entro 1 giorno