A third-party script I want to use places an element in the body of the page and relies on that element in order to work. However, the element gets toasted on page changes after the initial load.
I tried adding
data-turbo-permanent to it, but as I understand it, that only works for elements of the same ID that exist between two pages. Since the widget was added async, subsequent page requests will not have the widget in the body, so there is no matching element to persist.
Is there any way to tell Turbo to leave certain elements in the document if they exist?