optimizes external js and css file loading