reserved. Sergio del Amo https://sergiodelamo.com @sdelamo Member of the Micronaut Foundation Board of Directors Micronaut Lead Engineer at Object Computing Inc. Micronaut Developer Advocate Involved with Micronaut since its inception. Micronaut Core committer. Micronaut Guides. Micronaut Starter, Security, AWS, Views, RSS, Problem+JSON, Email, 2
reserved. 17 JS Front End / JVM Backend Traditional Approach vs ✅ SPEED OF NAVIGATION NOT CONSTANTLY TEARING DOWN THE APPLICATION PROCESS ONLY TO REINITIALISE IT ON THE VERY NEXT PAGE
reserved. Click Link ❖ Prevents the browser from following it ❖ Changes the browser’s URL using the History API ❖ Request the new page using fetch ❖ Renders the HTML Response ‣ Replaces the <body> element ‣ Merges the <head> element ‣ Javascript window and document, and the <html> persist. 32 DRIVE Intercepts all links to same domain
reserved. Form submission ❖ Set the “submitter” element’s disabled attribute when the submission begins ❖ Remove the attribute after the submission ends ❖ After a stateful request from a form submission, Turbo Drive expects the server to return an HTTP 303 redirect response, which it will then follow and use to navigate and update the page without reloading 33 DRIVE
reserved. 📖 Guide: Build with the Micronaut Framework a chat application such as the Rails application demonstrated in the Hotwire announcement screencast. Micronaut Turbo Resources ❖ https://guides.micronaut.io/latest/hotwire-turbo-micronaut-chat.html 46 📖 Guide: Run the Turbo Native Demo with a Micronaut application as the backend. ❖ https://guides.micronaut.io/latest/micronaut-turbo-native.html 📃 Micronaut Views Turbo ❖ https://micronaut-projects.github.io/micronaut-views/latest/guide/#turbo 📃 Turbo ❖ https://turbo.hotwired.dev/ 📼 Hotwire Turbo Chat with the Micronaut Framework ❖ https://www.youtube.com/watch?v=Fas3Scyk9Ps 📼 Turbo Native iOS demo with the Micronaut Framework ❖ https://www.youtube.com/watch?v=ZyEdv_xQTK4 📼 Turbo Native Android demo with the Micronaut Framework ❖ https://www.youtube.com/watch?v=zgRRlp0779A