Webflow.js does include two functions that may be helpful when working with single-page applications.
Webflow.destroy()
- call this function to clean up any components or stop any animations before DOM elements are removed from your app.
Webflow.ready()
- call this to re-initialize the whole page once your app has inserted new DOM elements.
Hope that helps!