imacrayon / alpine-ajax

An Alpine.js plugin for building server-powered frontends.
https://alpine-ajax.js.org
MIT License
558 stars 11 forks source link

Title and meta tags don't updated #40

Open alnuaimi94 opened 9 months ago

alnuaimi94 commented 9 months ago

Hi, how can i make html head updated for each page when i use ajax request in links

imacrayon commented 9 months ago

Hey Abdullah, Alpine AJAX doesn't currently support full page navigation. If there's enough interest in that feature I'd consider adding it (PRs are welcome too), but there's a lot of accessibility and state concerns we'd need to get right with full client-side routing (one of the reasons I've been putting it off 😄). Personally, I like to drop https://instant.page/ into my projects; I think preloaded links go a long way in making apps feel fast without having to mess with client-side routing edge cases.

alnuaimi94 commented 9 months ago

Hey Abdullah, Alpine AJAX doesn't currently support full page navigation. If there's enough interest in that feature I'd consider adding it (PRs are welcome too), but there's a lot of accessibility and state concerns we'd need to get right with full client-side routing (one of the reasons I've been putting it off 😄). Personally, I like to drop https://instant.page/ into my projects; I think preloaded links go a long way in making apps feel fast without having to mess with client-side routing edge cases.

I used many of ajax libraries like htmx, unpoly, swup js, barba js, Hotwire and your library

unpoly is very good library but i left it because the size of it, and i found your library very good because it using fetch instead of xhr request therefore i loved it.

jonasfeige commented 7 months ago

Hey Abdullah, Alpine AJAX doesn't currently support full page navigation. If there's enough interest in that feature I'd consider adding it (PRs are welcome too), but there's a lot of accessibility and state concerns we'd need to get right with full client-side routing (one of the reasons I've been putting it off 😄). Personally, I like to drop https://instant.page/ into my projects; I think preloaded links go a long way in making apps feel fast without having to mess with client-side routing edge cases.

Just wanted to say that full page navigation would actually be an amazing feature and allow me (and many others) to fully replace HTMX / Turbo in a lot of projects where Alpine is already being used for DOM manipulation, etc.