Re:Front-End Walkthrough: Building a Single Page Application...
by andrei_says_ on Thursday July 20, 2017 @09:19PM
(#14817430)
A wonderful solution for this is the Turbolinks approach which is a part of the standard Rails stack.
The new page request takes place over Ajax, the server sends the whole page, and only the body gets replaced thus avoiding the need for loading common assets and initializing js.
The new page request takes place over Ajax, the server sends the whole page, and only the body gets replaced thus avoiding the need for loading common assets and initializing js.
I'm simplifying but hopefully you get the point.