PHP 8.5 release page causes excessive GPU usage due to animated SVG background
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- css, php
- 领域
- frontend, performance
调研方向
Start with the .hero-bg SVG and its CSS animations on the PHP 8.5 release page at /releases/8.5/en.php; compare GPU usage with the background disabled and check whether a prefers-reduced-motion fallback is present. Done means the decorative background no longer causes excessive GPU usage while idle, with reduced-motion preferences respected.
由索引模型根据 Issue 内容生成。
描述
Affected Page URL
https://www.php.net/releases/8.5/en.php
Describe the bug
The PHP 8.5 release page causes unusually high and continuous GPU usage while the page is idle.
On my system, simply leaving the page open results in approximately:
- Firefox: 75–100% GPU usage
- Microsoft Edge: ~12% GPU usage
There is no user interaction occurring and the page is otherwise completely idle.
The issue appears to be caused by the animated SVG used as .hero-bg in the hero section.
The SVG contains three full-size <rect> elements using radial gradients. Each one is wrapped in nested <g> elements and several independent infinite CSS transform animations are applied:
.hero-orb-1-x { animation: hero-orb1-x 10s linear infinite alternate }
.hero-orb-1-y { animation: hero-orb1-y 10.5s linear infinite alternate }
.hero-orb-1-r { animation: hero-orb-rotate-fwd 7s linear infinite }
.hero-orb-2-x { animation: hero-orb2-x 11.5s linear infinite alternate }
.hero-orb-2-y { animation: hero-orb2-y 12s linear infinite alternate }
.hero-orb-2-r { animation: hero-orb-rotate-fwd 12s linear infinite }
.hero-orb-3-x { animation: hero-orb3-x 12.5s linear infinite alternate }
.hero-orb-3-y { animation: hero-orb3-y 6s linear infinite alternate }
.hero-orb-3-r { animation: hero-orb-rotate-rev 9s linear infinite }
Steps to reproduce
- Open https://www.php.net/releases/8.5/en.php in Firefox.
- Leave the page idle on the hero section for a few seconds.
- Open Windows Task Manager and check GPU utilization.
- Observe that GPU utilization rises to approximately 100% and remains very high while the page is visible.
- Disable or remove the
.hero-bgSVG / its animations in DevTools and observe the GPU utilization.
Expected behavior
An idle release/documentation page should consume negligible GPU resources.
A purely decorative background animation should not continuously saturate or significantly load the GPU.
Screenshots
Additional context
The screenshot was taken in Firefox on Windows with an NVIDIA GeForce RTX 4070 Laptop GPU. GPU utilization reaches 100% while the page is simply displayed and no user interaction is taking place.
For comparison, Microsoft Edge on the same page uses approximately 12% GPU, which is substantially lower but still unusually high for a decorative background effect.
The performance issue appears to be associated with the animated .hero-bg SVG. It contains three full-size radial-gradient rectangles with multiple nested, continuously running CSS transform animations.
The current implementation also does not appear to provide a prefers-reduced-motion fallback for these animations.
- 主要语言
- PHP
- 星标
- 1.1k
- 派生
- 641
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 15
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/web-php 的其他 Issue
-
Page: downloads
难度 3/5 1-2 天 新手友好度 55/100
php/web-php#1946 · 2 个 reaction ·
维护者通常 1 天内回复
-
Page: downloads
难度 3/5 1-2 天 新手友好度 62/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 3/5 1-2 天 新手友好度 45/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 4/5 3-5 天 新手友好度 50/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
-
Made by AI module: MCP type: bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
-
maintenance
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
hawk-digital-environments/HAWKI#443 ·
维护者通常 1 天内回复