There is a link on a page. When I click on it I, indeed, get redirected to another page. But for the first time (when the referral in another page with the link) none of the js file load. None at all. Only when I reload it manually or type in the link in the address bar, then all the js files load normally. But for the first time - not.
It happens on both development and production environments. I suspect that caching might be a cause but some js files remain having "304 Not modified" even after reloading (some do not, though).
I use turbolinks if this matters.
What's the matter?