by pmontra · 7y ago · 0 comments
But sites were small and even loading all the page again was not that bad.
By the way, Rails Tutbolinks [1] are a way to get the same result with the server rendering only the html body and the js code in the browser swapping it with the current one.
> Turbolinks intercepts all clicks on <a href> links to the same domain. When you click an eligible link, Turbolinks prevents the browser from following it. Instead, Turbolinks changes the browser’s URL using the History API, requests the new page using XMLHttpRequest, and then renders the HTML response.
I don't have a Turbolinks application to check but I found this https://github.com/turbolinks/turbolinks/issues/313
and this
https://www.mskog.com/posts/instant-page-loads-with-turbolin...
The behavior you describe is possible but it's not the default and requires adding other libraries.