Skip to content

Commit

Permalink
defered addThis
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-zoharmuzafi committed Dec 17, 2018
1 parent bcadbcb commit 1240308
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/components/common/share.html
Expand Up @@ -61,11 +61,13 @@
{{/each}}
</ul>
<script type="text/javascript"
src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e94ed470ee51e32"></script>
<script>
if (typeof(addthis) === "object") {
addthis.toolbox('.addthis_toolbox');
}
defer src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4e94ed470ee51e32"></script>
<script>
window.addEventListener('DOMContentLoaded', function() {
if (typeof(addthis) === "object") {
addthis.toolbox('.addthis_toolbox');
}
});
</script>
</div>
{{/if}}

0 comments on commit 1240308

Please sign in to comment.