# fix\(mobile\): park ambient loading animations when offscreen or reduced motion · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/1e0c7329a3905373a48c41ca411fd31d500b3327)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 1e0c7329a3905373a48c41ca411fd31d500b3327

Requested commit: 1e0c7329a3905373a48c41ca411fd31d500b3327

Commit: 1e0c7329a3905373a48c41ca411fd31d500b3327

Tree: 96268e73b6e6092674cf017a4e2b57ff6b1149b1

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
fix(mobile): park ambient loading animations when offscreen or reduced motion

LoadingStrip's indeterminate sweep and ConnectionStatusDot's halo pulse
ran withRepeat loops for the entire lifetime of the component, including
while the app was backgrounded, the rendering screen was blurred, or the
user had reduced motion enabled, pegging the GPU for work nobody sees.

Add useAmbientAnimationsEnabled (app-active + screen-focus +
reduce-motion, the pattern established in thread-work-log.tsx) and gate
both loops on it. LoadingStrip shows a static strip while parked so
"still loading" stays legible; the status dot keeps its colored dot.

```

## Parents

- [d7819c18813fa03b033cc1c9472c9acc0ffc0618](https://git.cafe/pingdotgg/t3code/commit/d7819c18813fa03b033cc1c9472c9acc0ffc0618?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/1e0c7329a3905373a48c41ca411fd31d500b3327?format=markdown)
