4 ms·
If all you did was put the second header inside the main element and used position sticky, you'd get the _exact_ same effect without any js and only a couple of
by RobertRoberts 6y ago
If all you did was put the second header inside the main element and used position sticky, you'd get the _exact_ same effect without any js and only a couple of lines of CSS.
I don't understand why you'd chose an incredibly more complex solution that is objectively worse in nearly every way.