improve browser memory usage