SupeRails
Vložit
- čas přidán 20. 03. 2024
- Turbo 8 has been released! One of the core new features - hover-click preload acceleration (ala InstantClick).
InstantClick makes an assumption about potential user behaviour: now whenever you hover on a link, it will fire a GET request to retrieve that page. So when you actually click on the link, it will load faster.
Remarkable how effective it is for perceived performance. It can save hundreds of ms saved in many cases!
Episode source code: github.com/corsego/163-turbo-...
Based on this blogpost: blog.corsego.com/turbo-8-inst...
Цікаві фічі!
Дякую Ярослав що показав.
Чекаємо на продовження!
Very cool. I had this idea like 10 years ago and I totally forgot to do something about this idea.
Ran into a weird issue. Had a page full of links. Instaclick worked as expected but moving the mouse freezed chrome on a medium computer. Firefox was fine. I think there are some issues that need to be addressed. I had to disable it on that page.
and if anyone is concerned about the number of requests remember Rails caching is your friend ...and ETags don't forget ETags 😇