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

未关闭
#993 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
html, web-dev

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

[!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.

主要语言
HTML
星标
42
派生
33
平均合并
17 小时 18 分钟
30 天内合并 PR
111

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

forrtproject/forrtproject.github.io 的其他 Issue

查看 forrtproject/forrtproject.github.io 的全部 Issue

相似的 Issue

更多 Web Dev Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。