optimise page rendering