Ask A Question

Notifications

You’re not receiving notifications from this thread.

Front-end frameworks and Turbolinks

Nick McNeany asked in Javascript

Hey Everyone,

I'm having a small problem with the JavaScript components of the Uikit framework and I know it has to do with turbolinks. Here's the gem I'm using Uikit2-Rails.

I followed Chris's upgrading to turbolinks5 episode, but I still can't get them to work after the initial page load, I'm also using jquery-turbolinks.

Does anyone know of a work around for turbolinks and front-end frameworks, or should I just ditch turbolinks?

Thanks for any help!

Reply

Sorry that I can't help you, but just wanted to share that today I ditched Turbolinks. I'm using lightbox navigation. Similar to what Pinterest does and since I pushstate manually to change the URL it messed up the back button so I had to remove Turbolinks and now everything works perfect.
I do think that Turbolinks is great, but in some cases it makes problems. I'm sure you can solve yours. The question is how and if it's worth your time.
Good luck either way.

Reply

Thanks Isaac!

I'll look into lightbox navigation.

Reply

Who can help me to find a suitable framework? I need one for my new job.

Reply

I really want to know how to solve this problem!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.