Only toggle sticky header on initial render, window resize

It's a waste to check the header percentage and toggle the header's
stickiness on every scroll event.  Just do this on the initial
render and when the window is resized.

Addresses #942