changing the way of loading JS and CSS resources