Swup & swup/astro come with most fixes for the typical problems but if you're using something else I'll resume the fixes here as I just went through this rabbit hole.
Barba, swup, highway, taxi, etc
If your pjax lib doesn't do it, you'll need to update the `` after every route to import correct styles & scripts.