fixin.me/app/javascript/application.js
cryptogopher c96b646087 Hide page content until turbo:load event
To avoid cases when Turbo links are processed as normal HTTP requests
2024-01-04 23:06:47 +01:00

9 lines
300 B
JavaScript

// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
import "@hotwired/turbo-rails"
Turbo.session.drive = false
function showPage(event) {
document.documentElement.style.visibility="visible";
}
document.addEventListener('turbo:load', showPage);