DEV Community

Discussion on: htmx and HTML Driven Development

Collapse
 
rajasegar profile image
Rajasegar Chandran

Because both hx-boost and Turbolinks intercept anchor links and send ajax request for the body content and swap them.

Collapse
 
hhvdblom profile image
hhvdblom • Edited

If you use a so called masterpage and have a tag in it for the partials you can use innerHTML to swap those parts and voila you have a SPA. Of course you use Ajax calls for this because a normal link would switch the whole page content and thats not what you want.

Thread Thread
 
raglandcodes profile image
Ragland Asir

I think this site does something similar

web.dev/app-shell-ux-with-service-...

Thread Thread
 
bacloud22 profile image
aben

are they really using Google chrome prograssive apps? looks like witchcraft to me!