Today I learned

Efficiently load third-party JavaScript

Edit this Post Opens in new tab

Third-Party JavaScript is one of the number one things that slows down modern websites. And it's often hard to improve as you are unable to change the code itself, because you know, it's not yours, it's from a third party.

Milica shares great ways to improve the loading of third-party JS in this article ↗.

She specifies two ways to deal with third-party JS. The first one is: if you're able to and it doesn't add value, get rid of it, which seems to be the obvious one. The second one describes the optimization of the loading process.

Therefore she explains several techniques which make use of modern JS and improve the loading process of third-party JS drastically.

I learned a lot by following along with Milica's article and could improve my own loading process of third-party JS.

I hope you enjoyed this post and learned something new. If you have any questions, feel free to reach out to me on Twitter Opens in new tab or via Email Opens in new tab.

If you want to support me, you can buy me a coffee. I would be very happy about it!

☕️ Buy me a coffee ☕️

I wish you a wonderful day! Marco