JavaScript Techniques For Server-Side Applications
Many Laravel apps don’t warrant the complexity of a full front-end framework like Vue or React. In this series, we’ll walk through a handful of simple ways to add dynamic functionality to your apps. By combining various strategies, you can keep your simple Laravel stack, but still build interfaces that feel fast, fresh, and dynamic.
Server-Fetched Partials
I’d like to demonstrate a powerful little pattern called “Server-Fetched Partials” that offers some tangible benefits over alternatives like VueJS for simple page interactions.
Deferred Loading and Caching Server-Fetched Partials
Now that we’ve reviewed the basics of server-fetched partials, let’s look at another common use-case and demonstrate how we can make the experience even smoother by caching the partials. We’ll also pull in a library called Include Fragment Element to make the fetching process even easier!
Make Your Apps Faster With Turbolinks
In this video, we’ll apply the “server fetched partials” concept to entire page loads using Turbolinks. By adding one line of code, we’ll make a server-side Laravel app feel like an SPA.