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

NodeBB / NodeBB / 28601225474

02 Jul 2026 03:18PM UTC coverage: 85.404% (-0.003%) from 85.407%
28601225474

push

github

web-flow
fix: clear stuck loading indicator on bfcache restore (#14419)

When a full-page navigation is triggered from within an in-flight ajaxify transition (e.g. onAjaxError redirecting to /login or an external URL, or handleRedirects opening the admin panel), action:ajaxify.end never fires, so the loading indicator keeps running and #content keeps its 'ajaxifying' class. The browser stores the page in the back/forward cache in that state, and pressing Back restores it with the indicator stuck, so the page appears to hang.

Add a pageshow handler that, on a persisted (bfcache) restore where the ajaxifying state is still set, refreshes the current page. This clears the loading indicator through the normal render cycle and reconnects the socket via ajaxify.go. It is gated on the stuck state, so ordinary bfcache restores are unaffected.

14068 of 19216 branches covered (73.21%)

29415 of 34442 relevant lines covered (85.4%)

3479.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.21
/src/middleware/render.js


Source Not Available

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