Async and Defer?

This may well be posted to the incorrect community board. I am happy to remove and repost if necessary or migrate to another if that is possible.

While trying to reduce the considerable impact of hubspot’s third party scripts on a Bootstrap-underpinned website which sadly is proving to be almost impossible, I am looking at the embed script for the tracking snippet, which reads:

<script type="text/javascript" id="hs-script-loader" async defer src="//js-eu1.hs-scripts.com/ourscriptidentifier.js"></script>

And trying to understand the usage of both async and defer in one call.

Surely these together create the conditions for competition, and may as a result damage performance?

What am I missing here?

Hi @SPL

Thank you for reaching out.

I want to tag some of our experts here - @Anton @Teun @BarryGrennan do you have any thoughts for @SPL on this?

Thank you!

Best

Tiphaine

Hi,

According to some reading that your support tried to find around this it covers legacy browsers - that is, IE.

For those that cannot process the async directive including a defer directive will apparently instruct these softwares to wait.

I do not believe that removing this directive will reduce the impact of your third party script/s on our site to improve PageRank score. Not from what I can see when testing this, anyway.