addthis toolbox is hidden after you load another page.

this line is missing:

<script type='text/javascript' src='/sites/default/files/addthis/addthis_widget.js#async=1'></script> 

on every page except the first you open.

if block cache is disabled, there's no problem


Les Lim’s picture

Title: toolbox hidden after first page load (block cache enabled) » AddThis script doesn't load when block cache is enabled

The AddThis script is only added into the page when the theme function is called, because we don't want to load the additional script file if AddThis isn't being displayed anywhere on the page. Block caching bypasses the theme function call, so that's why the script doesn't get added into the HEAD.

I'm open to some options for tackling this.

Alessandro Pezzato’s picture

Is it possible to disable block caching only for addthis block?

lpalgarvio’s picture


Les Lim’s picture

Version: 6.x-3.0-beta1 » 6.x-3.x-dev
Status: Active » Fixed

Fix committed. New release should be available shortly.

Status: Fixed » Closed (fixed)

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