consolidate scripts to improve load times