Sometime ago I had an idea that SPAs exist mostly because animated transitions between pages make managers happy, not to serve any actual user need. If that's true, maybe we could add support for animated transitions between server-side rendered pages, and make SPAs mostly go away. Then I realized we could do that easily with a JS library! We could give some divs a "sticky-id" attribute, so they stay as part of the D…
https://github.com/turbolinks/turbolinks is pretty close?
Intercooler.js – Simple AJAX Using HTML Attributes
21–30 of 53 posts
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#22Previous thread: https://news.ycombinator.com/item?id=12885980
Which hilariously begins with the statement:
>> This has been reposted so many times by the author and by others that I can't help but finally ask. What's the point?
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#23Earlier quoted context omitted.
https://github.com/turbolinks/turbolinks is pretty close?
Neat! Though the point of my idea is having animated transitions between pages, by replacing contents of sticky elements and letting their CSS transitions work as usual. As far as I can tell, turbolinks doesn't do that.
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#24Sometime ago I had an idea that SPAs exist mostly because animated transitions between pages make managers happy, not to serve any actual user need. If that's true, maybe we could add support for animated transitions between server-side rendered pages, and make SPAs mostly go away. Then I realized we could do that easily with a JS library! We could give some divs a "sticky-id" attribute, so they stay as part of the D…
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#25Sometime ago I had an idea that SPAs exist mostly because animated transitions between pages make managers happy, not to serve any actual user need. If that's true, maybe we could add support for animated transitions between server-side rendered pages, and make SPAs mostly go away. Then I realized we could do that easily with a JS library! We could give some divs a "sticky-id" attribute, so they stay as part of the D…
https://developer.mozilla.org/en-US/docs/Web/Events/beforeun...
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#26Sometime ago I had an idea that SPAs exist mostly because animated transitions between pages make managers happy, not to serve any actual user need. If that's true, maybe we could add support for animated transitions between server-side rendered pages, and make SPAs mostly go away. Then I realized we could do that easily with a JS library! We could give some divs a "sticky-id" attribute, so they stay as part of the D…
Funny thing, you can actually serve each page as a separate, stand-alone JS "app/page" and still get this benefit (e.g. each page in your app becomes separate webpack entry point).
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#27Sometime ago I had an idea that SPAs exist mostly because animated transitions between pages make managers happy, not to serve any actual user need. If that's true, maybe we could add support for animated transitions between server-side rendered pages, and make SPAs mostly go away. Then I realized we could do that easily with a JS library! We could give some divs a "sticky-id" attribute, so they stay as part of the D…
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#28Re: Intercooler.js – Simple AJAX Using HTML Attributes
#29To add -- it depends on jQuery? Yeah, I'm gonna have to pass. What this thing does is so small that I can't fathom why they would need to import all of jQuery just to provide a new way to do AJAX requests.
I'll just keep using React, it probably already solves whatever problem is trying to be solved here.
Re: Intercooler.js – Simple AJAX Using HTML Attributes
#30Earlier quoted context omitted.
https://github.com/turbolinks/turbolinks is pretty close?
Turbolinks is cool but it seems more tied to only a rails backend. Anyone know how to use it with Java?