bigskysoftware / htmx-extensions

164 stars 50 forks source link

Preloaded Pages Not Boosted with htmx Preload Extension #107

Open gkhk0 opened 1 month ago

gkhk0 commented 1 month ago

Pages preloaded using the htmx Preload extension are not being boosted as expected. This leads to unnecessary data transmission, as the entire preloaded page is fetched even if only a portion of it is needed.

marisst commented 2 weeks ago

@gkhk0 I have implemented a change which fixes this issue in PR#106 of the extensions repository. When this change is merged, hx-boosted elements will include HX-Request headers in the request, making sure only the needed portion of the page is fetched. If you would like to use the updated extension already now, you can find it in my fork.