Reload page on boosted elements when assets change #3050
antonisgkamitsios
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The idea came to me after watching turbo's data-turbo-track="reload" feature. The idea behind it is if for some reason the server has generated new assets (js/css) and they are critical for our application we should reload the page so the user will see the last version (in case of css the merge algorithm from the htmx Head Tag Support Extension will probably do just fine but in case of js you might not need the old script to me removed and a new one to be loaded). I would like to hear your opinion if this is something that makes sense to be added in the htmx Head Tag Support Extension. I have been working on a prototype on a side project of mine the code looks like this.
Beta Was this translation helpful? Give feedback.
All reactions