Check if nav has the sticky class before adding or removing it. Not checking causes severe framerate drops as addClass was called continuously during page scroll.
Merge pull request #3059 from olafurnielsen/master

Check if sticky nav has the fixed class before adding or removing it.