turbolinks/turbolinks-classic

enableTransitionCache() + data-turbolinks-permanent

nicolasmlv opened this issue · 0 comments

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)