Support » Plugin: What Would Seth Godin Do » [Plugin: What Would Seth Godin Do] WWSGD assumes jQuery is loaded in header

  • I just updated WWSGD to 2.0.1 and found it broken on my sites. The problem is that the plugin inserts its JS into the page head, while I’m loading all my JS, including jQuery, at the bottom. This causes the initial jQuery call to fail.

    This can be fixed by loading your JS via wp_footer() rather than wp_head(). This way it will work regardless of where jQuery is loaded on the page.

    Another small request (not a bug but just my OCD talking): It would be nice to see the inline JS minified onto a single line so we don’t get a big block of inline JS in the source. It doesn’t need to be human-readable. Like this: http://pastebin.com/gDY5bcAd

    Thanks!

    http://wordpress.org/extend/plugins/what-would-seth-godin-do/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Richard K Miller

    (@richardkmiller)

    Kenn, thanks for this and your other forum post. I’m creating a fix now. Should have it shortly.

    Plugin Author Richard K Miller

    (@richardkmiller)

    Kenn, I just checked in v2.0.2 with the fixes you mentioned.

    Does the unminified JS trigger any YSlow-type tests on your site?

    Thanks again for your help.

    Thread Starter kw

    (@kchrist)

    No, it doesn’t cause any problems; it’s purely aesthetic (like I said, OCD talking).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: What Would Seth Godin Do] WWSGD assumes jQuery is loaded in header’ is closed to new replies.