generated from finsweet/developer-starter
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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)
bondt
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working