Load your resources from your machine while in development. In production it'll load from a cdn but fallback to your site site. All of this with a single function call.