Forums

What Would Seth Godin Do
WWSGD assumes jQuery is loaded in header (4 posts)

  1. Kenn Wilson
    Member
    Posted 11 months ago #

    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/

  2. Richard K Miller
    Member
    Posted 10 months ago #

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

  3. Richard K Miller
    Member
    Posted 10 months ago #

    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.

  4. Kenn Wilson
    Member
    Posted 10 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic