plans/issues/issue-2261.md
webSecurity: false slow-animation report (Electron/Chromium environment, not Motion)Executor instructions: Follow step by step; run the drift check first. Update the status row for this plan in
plans/issues/README.mdwhen done.Drift check (run first):
gh api repos/motiondivision/motion/issues/2261 --jq .state→ expect"open". If already closed, mark this plan DONE and stop.
42bfbe3ed, 2026-06-11Filed July 2023: in an Electron app, setting webSecurity: false makes
framer-motion (and, per the reporter, Motion One as well) animations slow
and start ~400ms late in production builds. The reporter says "I'm not sure if
this is due to Framer Motion / Motion or Electron". Why this is not a Motion
issue:
webSecurity: false flips Chromium command-line switches that are documented
to affect renderer scheduling/compositing behaviour. Two independent
animation libraries degrading identically under the same flag means the
regression sits below both — in Electron/Chromium — not in either library.Open plans/issues/README.md and find the row for issue-2261. If the row is
not marked APPROVED, set this plan's status to BLOCKED in
plans/issues/README.md and stop.
gh api repos/motiondivision/motion/issues/2261/comments -f body="Closing: the only variable here is Electron's webSecurity flag, and per your own repro it affects Framer Motion and Motion One identically — which places the regression in Electron/Chromium's renderer behaviour under that flag rather than in either library. There's no Motion code path that interacts with web-security settings, so there's nothing actionable in this repo; this would be worth raising against Electron with a vanilla WAAPI/rAF benchmark. If a current Electron + motion@12 combination shows Motion specifically misbehaving (e.g. vanilla element.animate is fine but Motion is slow), please open a new issue."
gh api -X PATCH repos/motiondivision/motion/issues/2261 -f state=closed -f state_reason=not_planned
Verify: gh api repos/motiondivision/motion/issues/2261 --jq .state → "closed".
not_plannedplans/issues/README.md status row updatedwebSecurity: false while Motion's are — that would implicate Motion's
driver/WAAPI selection and reopen this as a real investigation.