IE 11 issue - Loading specific script tag in head section in Turbolinks

Author: saranya-sanjuCreated Sep 9, 2021Updated Sep 9, 2021
Labelsbug

Describe the bug Turbolinks is loading the body section of the page alone. I need to run a script in the head section on every page, where the script is working only when it is reloaded. Is there any option to reload the specific script alone in Turbolinks, instead of reloading every page all the time?

To Reproduce Add a script in the head section, Navigate to the Turbolinks page, the script is not working in IE since it is not loading the script.

I have tried, data-turbolinks-track="reload" in the particular script, but it is reloading the pages every time. Is it possible to load the script in turbolinks itself, without reloading the pages every time?

Expected behavior Turbolinks should load the specific script in the head section, without reloading the pages every time.

Details:

  • Operating System: Windows
  • Browser: IE 11
  • Turbolinks Version: v5.2.0