turbolinks / turbolinks-classic

Classic version of Turbolinks. Now deprecated in favor of Turbolinks 5.
MIT License
3.54k stars 431 forks source link

enableTransitionCache() + data-turbolinks-permanent #619

Closed nicolasmlv closed 9 years ago

nicolasmlv commented 9 years ago

Hello, So I have this view :

screen shot 2015-10-08 at 19 12 16

And when I call this :

Turbolinks.visit("http://localhost/home");

A JS error is raised because there is a data-turbolinks-permanent element :

screen shot 2015-10-08 at 18 50 27

It is working if I remove enableTransitionCache() :

screen shot 2015-10-08 at 18 49 33

I guess this is something here : https://github.com/rails/turbolinks/blob/master/lib/assets/javascripts/turbolinks.coffee#L190 or maybe we should update the Readme about this incompatibility (in the "Transition Cache: A Speed Boost" part)