reordering foundation's required scripts to improve performance