Use once in tocbot_init.js

Created on 23 September 2025, 13 days ago

Problem/Motivation

I've noticed tocbot_init.js sometimes fires multiple times.

I've also seen edge cases where it didn't work properly in combination with Bigpipe.

Proposed resolution

Make sure the tocbot_init.js is only running once.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium f0ns

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024