scripts at end don't flicker browser