Drupal Sharing Customization
Asynchronous Loading
Use the following code as a template for optimizing AddToAny to load asynchronously & deferred. This optimization allows all of your content to load before or at the same time as AddToAny under all circumstances.
<div class="a2a_kit a2a_kit_size_32 a2a_default_style" data-a2a-url="https://www.example.com/page.html" data-a2a-title="Example Page">
<a class="a2a_button_facebook"></a>
<a class="a2a_button_mastodon"></a>
<a class="a2a_button_pinterest"></a>
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>
<script defer src="https://static.addtoany.com/menu/page.js"></script>
The Drupal sharing module is optimized to load AddToAny asynchronously & deferred, which allows all of your content to load before or at the same time as AddToAny under all circumstances.
The WordPress sharing plugin is optimized to load AddToAny asynchronously & deferred, which allows all of your content to load before or at the same time as AddToAny under all circumstances.