How to defer/async the loading?
-
Hello,
We want to defer or async the loading of the plugin.
This code in header.php did not work:
<script defer=”defer” src=”https://cdn.shareaholic.net/assets/pub/shareaholic.js”></script>
<script defer=”defer” src=”https://m9m6e2w5.stackpathcdn.com/v2/d1d50b0d/buttons.js”></script>We’re using Rocket Loader of Cloudflare CDN which should defer all JS.
It would be nice to load the Sharebar etc. way after everything else has loaded. I don’t think that users would share content within 5 seconds. They need time to read and check the content before sharing.
Thank you!
Tobias
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to defer/async the loading?’ is closed to new replies.