Instead of fetching third-party code from external servers, hosting the scripts on your local server is more manageable, so it takes less time to download and execute the scripts. You can also delay loading JS files until the user interacts through a plugin like 10Web Booster.