This would involve pre-scraping the codebase, pre-loading dependency files, and concatenating into one larger file. Possibly with grunt / gulp?