Right now, the ShareThis code is presented on every page because it's added in hook_init(). It would be better if the ShareThis code was only presented when it's actually used. This patch adds a sharethis_add_js() function, which is called whenever the ShareThis button is shown. It also checked to make it that it's not adding it more then once....

CommentFileSizeAuthor
sharethis_add_js.patch1.92 KBrobloach

Comments

robloach’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.