Improve performance on Firefox.