←back to thread

Less Htmx Is More

(unplannedobsolescence.com)
169 points fanf2 | 1 comments | | HN request time: 0.209s | source
Show context
sgt ◴[] No.43620217[source]
How do you get flicker free navigation using htmx without using hx-swap or boost? I see that this article refers to https://unplannedobsolescence.com which has a header that remains the same, but it also doesn't change. Normally a header will do some type of change, e.g. showing which menu item is currently selected. That's when the flickering starts, in my experience.
replies(2): >>43620261 #>>43620349 #
ahmetsait ◴[] No.43620349[source]
Browsers already have built-in mechanism to prevent flicker while switching pages, unless your page has issues such as flash of unstyled content or something similar.
replies(2): >>43620860 #>>43621083 #
1. zigzag312 ◴[] No.43621083[source]
I think scroll position is the one that is not preserved.