Don't let Firefox put a dotted border around clicked links.
Scope the resize event.
Workaround for Firefox bug.
Workaround for Safari becoming unresponsive during animations.