Turbo not loading on Safari in production
airblade opened this issue · 1 comments
I have just run into a strange problem: when I visit my production Rails app with Safari, Turbo doesn't seem to be loading.
-
If I open the console and type
Turbo
, I getReferenceError: Can't find variable: Turbo
. -
Furthermore when I look at the network tab in devtools,
turbo.min-6e9483ca.js
is not listed.
The same site is fine with Chrome and Firefox: Turbo
in the console prints the turbo object and turbo.min-6e9483ca.js
is listed on the network tab. And it's also fine in development with Safari.
I'm pretty sure Safari in production worked for me a week ago but I can't think of anything that has changed since then, though evidently something has.
How can I debug this?
Safari 17.2.1, Rails 7.1.3.4, turbo-rails 2.0.5, importmap-rails 2.0.1 (with es-modules-shims 1.10.0 for legacy browsers), propshaft 0.9.0.
Hmm, quitting Safari and restarting it solved the problem. Weird.