optimize for browser.