Re: [Rails] javascript hit and miss?

2018-04-30 Thread Joe Guerra
I think I found something that fixes the problem. I've added it to my partial. if (window.addthis) { window.addthis = null; window._adr = null; window._atc = null; window._atd = null; window._ate = null; window._atr = null; window._atw = null; } ok, you will have a minute to test it... t...

Re: [Rails] javascript hit and miss?

2018-04-25 Thread Walter Lee Davis
This would be a Turbolinks problem, very definitely. Turbolinks only refreshes the head of the page when you do a full reload. It's expected that your scripts will be compiled in the Asset Pipeline and will load once. Ever after, the body of the page is silently replaced via Ajax, thus speeding

[Rails] javascript hit and miss?

2018-04-25 Thread Joe Guerra
I've got some javascript on my rails site ( addthis toolbar & lightbox js ). They don't always load - I have to hit page refresh at times to get them to load. Would this be a javascript or rails problem? Thanks, Joe -- You received this message because you are subscribed to the Google Grou