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

  1. Kenn Wilson
    Posted 4 years 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



  2. Richard K Miller
    Plugin Author

    Posted 3 years ago #

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

  3. Richard K Miller
    Plugin Author

    Posted 3 years 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
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • What Would Seth Godin Do
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic