Small optimisation to loading javascript async