PHP 8.5 release page causes excessive GPU usage due to animated SVG background
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- css, php
- Área
- frontend, performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 1.1k
- Forks
- 641
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 15
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/web-php
-
Page: downloads
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
php/web-php#1946 · 2 reacciones ·
Los mantenedores suelen responder en 1 día
-
Page: downloads
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
php/web-php#1906 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
php/web-php#1905 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Bug Status: Needs Triage
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
php/web-php#1878 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de php/web-php
Issues similares
-
sync-en
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
sync-en
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 4 días
-
Перевод устарел
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
-
bug
Dificultad 2/5 Medio día Aptitud para principiantes 76/100
m3ue/m3u-editor#1604 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
femiwiki/docker-mediawiki#1497 ·
Los mantenedores suelen responder en 1 día