Replies: 1 comment
-
Ok, I guess it was just my search-fu was lacking since it's called lazy-loading and is already implemented. Good to know. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering (and after some quick searches couldn't find) if there was any interest / work / extensions for a include / import style tag, that is to say a void element tag that upon page load immediately loads and replaces said tags outer HTML with the corresponding HTML for example.
(EX: "example.com/blog/post-01.html")
The above example would be for a stub page for the blog post 01 (with the actual content in the partial file), once loaded, the main content could be swapped out with other blog posts (using their partial files) and all the other stub posts can reuse the exact same global includes for the headers and footers.
I would personally suggest that it should default to respecting 304 head responses but I suppose that is a implementation detail.
I'm not sure if this would be good to include in htmx itself or as a companion script. (I obviously vote for htmx, but will probably write up a POC companion script on my weekend in two days.)
(Please let me know if my search-fu was lacking and there was already a discussion on this.)
Beta Was this translation helpful? Give feedback.
All reactions