Classical way is to use CSS “sticky” to fix header on top of screen. Main pro: it’s only a css (plus you have to add some positioning relative, absolute...). That’s working well in general, sometimes ...