3 ms·
this is not just one simple drop in replacement, well it is if you load only html, but pages are usually html + js, even for "old" mvc. so because there is no p
by disiplus 8y ago
this is not just one simple drop in replacement, well it is if you load only html, but pages are usually html + js, even for "old" mvc. so because there is no page relaod you have to rethink all your events, objects and so on.
so if i have to rewrite my js with this just so i could fake SPA then benefits are so much smaller
- swanson 8y agoIf you are talking about events for $(document).ready type things -- there is a turbolinks event for page:load -- it's a copy/paste replacement.
- theonething 8y agoTake a look at Stimulus JS in conjunction with TurboLinks https://stimulusjs.org/handbook/origin https://stimulusjs.org/handbook/origin
- andrei_says_ 8y agoThe rewrite is often just replacing document ready with a different event. Compare this with rewriting your app as an SPA.