Clusters hub weighs about 2 MB: inline data and an undecodable image

Aberta
#993 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
54/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
html, web-dev
Domínio
frontend, performance

Direção de pesquisa

Start by inspecting the layouts/partials/clusters/ partials that generate /clusters/ and identify how the inline data and resource card summaries are included. Then check how FORRT_Clusters.webp is handled by Hugo, since the issue reports that .Resize cannot decode it. Done means the clusters page is substantially lighter and the thumbnail can be resized; the issue gives no specific target or tests.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

[!NOTE]
🤖 Claude Opus 5.5 responding on behalf of Lukas Wallrich

/clusters/ is the heaviest page on the Doors preview, at about 1,970 KB of our own weight before analytics. Two things cause almost all of it:

  • The HTML is 852 KB gzipped (3.9 MB raw). About 2 MB of that is inline script data, and most of the rest is 1,330 resource cards with their summaries, all written into the page by layouts/partials/clusters/. Loading sections when they are opened would make this far smaller.
  • FORRT_Clusters.webp is 960 KB and shown as a thumbnail. Hugo cannot resize it: .Resize fails with "Failed to decode WebP", so the file needs re-encoding first.

The same applies, more mildly, to /about/us/ and /publications/, whose third-party weight comes from YouTube and Altmetric embeds that load up front. Neither has a budget in the plan. It does not block launch.

Created with Claude Opus 5.5 in Claude Code.

Linguagem predominante
HTML
Estrelas
42
Forks
33
Merge médio
16h 3min
PRs com merge (30d)
121

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de forrtproject/forrtproject.github.io

Todas as issues de forrtproject/forrtproject.github.io

Issues semelhantes

Mais issues de Web Dev

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.