This is *very* similar (if not the same as...) the functionality in http://socialitejs.com/ where the actual JS for sharing is not loaded till the user (or page context) shows intent that the share icons will be used. This is particularly helpful to speedup page load.
Comments
Comment #1
christianchristensen commentedThis is a pass at using a placeholder image and javascript to manage hover loading the js share links.
Comment #2
christianchristensen commentedComment #3
christianchristensen commentedComment #4
christianchristensen commentedoops - untagging from wrong entry fields...
Comment #5
christianchristensen commentedNote: this patch took a lot some hints and inspiration from:
http://socialitejs.com/
http://stackoverflow.com/questions/6287119/javascript-load-addthis-upon-...
Comment #6
christianchristensen commentedUpdated this patch a little to clear out items on success callback and init addthis.
Comment #7
christianchristensen commentedUpdate patch to be more context aware and add more button styles.
Comment #8
christianchristensen commentedUpdate context on hide()
Comment #9
christianchristensen commentedCleanup hide and processed.
Comment #10
kenorb commentedClosed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.