Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 5 Turbolinks 5, not loading after a few page loads #6

Open
DLawla opened this issue Aug 15, 2017 · 9 comments
Open

Rails 5 Turbolinks 5, not loading after a few page loads #6

DLawla opened this issue Aug 15, 2017 · 9 comments

Comments

@DLawla
Copy link

DLawla commented Aug 15, 2017

Hi guys,
I'm seeing an issue on Rails 5.1 and Turbolinks 5.0.1 where the Tawk dialog loads correctly, then after approximately 6-7 turbolinks page loads, it stops loading. When I refresh the page, however, it resumes working for the next 6-7 page loads.
Cheers!

@ArkGladios
Copy link

Same here!

@dokuzbir
Copy link

still no fix?

@alex-kovshovik
Copy link
Contributor

Yep, just tried the latest version, still getting this issue:

vin deals negotiate a car deal like a pro 2018-03-07 07-43-50

TypeError: this.getBrowserData is not a function

TypeError: document.body is null

alex-kovshovik added a commit to alex-kovshovik/tawk-rails that referenced this issue Mar 7, 2018
@dokuzbir
Copy link

dokuzbir commented Mar 7, 2018

Are you sure moving in to body solves bug? It didnt work on my app. Problem seems about network. After 5 page loads tawk_to doesnt dowload some files

@alex-kovshovik
Copy link
Contributor

I just tested clicking through my project, like 15 times: it works 100%. I did test both in development mode and in production. I just put <%= tawk_init %> as a first statement after <body> tag in my app/layouts/application.html.erb.

@mapreal19
Copy link

@alex-kovshovik Unfortunately I've tried in mine as you suggested and after 5-6 times it stopped working. Same as @dokuzbir

@mapreal19
Copy link

Maybe we should upvote this one: https://tawk.uservoice.com/forums/228427-feedback/suggestions/32883448-add-support-for-rails-turbolinks

@alex-kovshovik
Copy link
Contributor

alex-kovshovik commented Mar 8, 2018

Makes sense, I just cast all 3 of my votes for that feature request @mapreal19: https://tawk.uservoice.com/forums/228427-feedback/suggestions/32883448-add-support-for-rails-turbolinks.

Sorry to hear it doesn't work for you. For some reason, it works for me just fine and my setup is not special at all.

Is it possible that this works for me because I'm using the latest version of Turbolinks (5.0.1)?

@luizpicolo
Copy link
Owner

I did a simple test with two links and it worked correctly.

turbolinks (5.1.1, 5.1.0)
turbolinks-source (5.1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants