Skip to content

TOC may be causing issues with Turnstile (?) #714

@alexiglesias93

Description

@alexiglesias93

Related Attributes
toc

Describe the bug
From a community user:

the finsweet toc script calls window.webflow.push() after it builds the table of contents. it has to do this to get webflow's ix to recognize the new elements it just added to the dom.
the problem seems to be that webflow's turnstile loader is hooked to the webflow.push() event. the loader then re-injects the script every time that event fires, without checking if it's already there.
so, tl;dr: the toc script's necessary re-initialization is triggering an unintended side effect in webflow's loader, causing the double load and race condition. (edited)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions