Save 36% for Black Friday! Learn more

New Discussion

Notifications

You’re not receiving notifications from this thread.

Learn Hotwire - data-turbo-track for specific page is slow to load

6
General

Hi all, I need some help.

I followed the video for data-turbo-track at 3.22 minutes. Added this code


<%= content_for :head do %>
<%= stylesheet_link_tag "my_todos", "data-turbo-track": "dynamic" %>
<% end %>

I noticed the page will take 1 - 3 seconds to load, compare to not to have this. I see the benefits of using this, but the loading is slow and doesn't seem acceptable though.

Any tips on how to speed up this use case? Thanks.

Try restarting your server.

I tried, same issue.

Hmm, it might be a bug in something but it's hard to say. That change should not affect any performance.

bug in rails 8.0.1 ? anyway i am using m2 max, 64GB macbook pro, doubt due to my laptop. Plus I remove that code, it works fine.

Not your computer. It is probably with propshaft

i see, i guess i will just skip this, hopefully it can be fixed in future. thanks Chris.

Join the discussion
Create an account Log in