Conditional context for better cross-browser performance