optimized order of scripts and css