Fixing an Opera/Safari bug with requireJS for conditional scrolling.