Optimizations for firefox