Comment by sgt

12 days ago

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.

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.

  • Yeah you are right. I can't reproduce it at the moment. Maybe I am thinking of a couple of years ago when the browser did in fact flash for the same.