Closed gregkohn closed 3 years ago
Also playing devil's advocate, is there any chance someone would want turbo in the parts kit?
Like, as a way of anticipating or diagnosing problems specific to Turbo?
Well, at some point on the viget.com redesign I think there was some turbo load more stuff in the parts kit (which eventually got ripped out). And just mostly thinking should stuff like that ever live in the parts kit?
Gotcha. I don't think it's out of the question, but part of a larger discussion. For now, I think it's okay to fix the existing bug in the simplest way.
Sites using Turbo are not compatible with the current structure of the JS in the parts kit. While we could go down a route of configuration or detection to adjust how the parts kit is initialized (e.g. wrapping that in a listener for
turbo:loaded
), it seems to me that it's adding a bunch of code for little pay off. Disabling turbo is a quick and simple fix.