Just run into this; essentially the same issue as in #1231768: Countdown does not show for anonymous users but for the D7 branch.

Thankfully it's easier to fix, as we have render arrays nowadays. Rather than calling theme() directly and returning strings from block and formatter view functions, we can instead return render arrays.

This mean that any caches (eg the block cache) get populated with a render array, rather than rendered strings. These render arrays then get rendered down to html post-cache; meaning theme_jquery_countdown gets called every time the block is viewed, and the javascript gets added consistently.

Patch to follow…

#1 jquery_countdown_1901028_1.patch2.25 KBstevetweeddale


stevetweeddale’s picture

new2.25 KB
stevetweeddale’s picture

Status:Active» Needs review