The Javascript and css seems to be included on every single page of my site, even though I have set the ddblock block to only appear on the homepage. Actually, I didn't explicitly specify that it should only appear on the home page, but I placed it in a region that is only output on the homepage - perhaps this is my problem?

Comments

ppblaauw’s picture

StatusFileSize
new770 bytes

Thanks for reporting!

The following patch should prevent that the CSS and JS of the dynamic display block module is used on pages without a dynamic display block.

Please let me know if this solves the issue

Edit: Use patch in #3 this one does not work

mrfelton’s picture

Status: Active » Needs work

Almost but not quite. That patch refers to a function named drupal_init_js_css(). Change it to ddblock_init_js_css(); and you're good to go.

ppblaauw’s picture

Status: Needs work » Needs review
StatusFileSize
new771 bytes

Thanks for your reply.

New patch

mrfelton’s picture

Status: Needs review » Reviewed & tested by the community

works for me.

ppblaauw’s picture

Status: Reviewed & tested by the community » Fixed

Tom, thank you for testing.

Set status to fixed.

Status: Fixed » Closed (fixed)

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