import Turbolinks from 'turbolinks' const { beyond } = window Turbolinks.start() document.addEventListener('turbolinks:before-cache', () => beyond.unbindAll()) document.addEventListener('turbolinks:load', () => beyond.bind()) beyond.docReady() .then(() => beyond.bind())