8 Matching Annotations
- Feb 2021
-
www.honeybadger.io www.honeybadger.io
-
-
When people try to port traditional web apps to Turbolinks, they often run into problems because their JS never cleans up after itself.
-
Turbolinks is a Single-Page Application Turbolinks doesn't just give you some of the benefits of a single-page app. Turbolinks is a single page app. Think about it: When someone visits your site, you serve them some HTML and Javascript. The JavaScript takes over and manages all subsequent changes to the DOM. If that's not a single-page app, I don't know what is.
-
Now if you think about it, PJAX sounds a lot like Turbolinks. They both use JS to fetch server-rendered HTML and put it into the DOM. They both do caching and manage the forward and back buttons. It's almost as if the Rails team took a technique developed elsewhere and just rebranded it.
-
There's an approach we've been using for years that lets us have our cake and eat it too. It's called PJAX, and its big idea is that you can get SPA-like speed without all the Javascript. When a user clicks a link, the PJAX library intercepts it, fetches the page and updates the DOM with the new HTML.
Tags
- Turbolinks
- copying/doing the same as how another project/library did it
- excellent technical writing
- it's your responsibility to handle that
- copying ideas from another project
- similarities/commonalities
- definition
- single-page app
- switching/migrating to something different
- relationship: is a
Annotators
URL
-
-
ctf0.wordpress.com ctf0.wordpress.com
- Sep 2020
-
github.com github.com
-
Also, some third-party libraries also don't play nicely with the Turbolinks approach, so you may want to consider whether Turbolinks is the right fit for this.
Tags
Annotators
URL
-
-
github.com github.com
Tags
Annotators
URL
-