Speed up rendering time for list/grid switching