F
F
FreezkoSS2017-09-18 08:56:13
Ruby on Rails
FreezkoSS, 2017-09-18 08:56:13

Java Script does not work after clicking on the link, but after manually reloading everything returns to normal, what should I do?

I created a small online store, well, or something like that, as soon as I loaded the page, the scripts work fine, but as soon as I flip through the page (for example, I went to the product), the script seems to be cut off, then I reload the page manually and voila, it works again, it feels like the DOM just stays with the scripts on other pages and therefore doesn't update itself. They say that some kind of turbolinks should be installed, I would like someone who knows to write how to deal with this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
N. Bekseitov, 2017-09-18
@FreezkoSS

Why jQuery script only fires after re...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question