The documentation for this gem says that it is necessary in order to get a new page from the server via ajax, parse it on the client side and replace only the contents of the body and head tags.
The standard "one-page" application that receives pages from the server via ajax I always checked with the following, as it seems to me, reliable method: I inserted a tag onto one page (in the case of rails this is audio_tag) and a link to another page. If, when switching to another page via this link, the music that started playing on the previous page continued to play, it means that ajax really works as it should and the page doesn’t do its usual reloading cycle, but is parsed directly from the server from the html client.
But in gem turbolinks, the application installed by default in rails, I see that everything is different.
I misunderstand the essence of his work? And doing something wrong?
<audio>where, in<body>? - D-sidebodyis being replaced and everything that was in it stops / dies. But in general, in appearance, according to speculation, it is not. Attach the executable example, the browser used and the Turbolinks version. - D-side