Efficiently load third-party JavaScript

Milica Mihajlija
Milica Mihajlija

If a third-party script is slowing down your page load, you have two options to improve performance:

  • Remove it if it doesn't add clear value to your site.
  • Optimize the loading process.

This post explains how to optimize the loading process of third-party scripts with the following techniques:

  • Using the async or defer attribute on