• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

palcarazm / bootstrap5-toggle / 20895861676
95%
v5: 93%

Build:
Build:
LAST BUILD BRANCH: develop/v5.2.0
DEFAULT BRANCH: v5
Ran 11 Jan 2026 01:24PM UTC
Jobs 2
Files 6
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jan 2026 01:24PM UTC coverage: 94.928% (+1.9%) from 93.048%
20895861676

push

github

web-flow
feat(performance): batch DOM calculations using requestAnimationFrame (#263)

Add requestAnimationFrame optimization to prevent
forced synchronous reflows during toggle size calculations.
This significantly improves performance when rendering multiple toggles.

- Split `handleToggleSize` into RAF-wrapped method and core `calculateToggleSize`
- Added `cancelPendingAnimationFrame()` for cleanup
- Call cancel in `destroy()` to prevent memory leaks
- Added fallback for browsers without RAF support
- Added comprehensive unit tests for new functionality

Performance Results:
- 500 toggles: 61.64% faster (299ms vs 780ms)
- 1000 toggles: 67.91% faster (783ms vs 2442ms)

Implements #258

296 of 330 branches covered (89.7%)

Branch coverage included in aggregate %.

13 of 13 new or added lines in 1 file covered. (100.0%)

434 of 439 relevant lines covered (98.86%)

62.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 coverage-report-24.x - 20895861676.1 11 Jan 2026 01:24PM UTC 12
96.31
GitHub Action Run
2 coverage-report-22.x - 20895861676.2 11 Jan 2026 01:24PM UTC 12
96.31
GitHub Action Run
Source Files on build 20895861676
  • Tree
  • List 6
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #20895861676
  • c2eb8a2c on github
  • Prev Build on develop/v5.3.0 (#20880214913)
  • Next Build on develop/v5.3.0 (#20899724107)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc