Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I think scroll position is the one that is not preserved.





Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: