WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest "Pin It" Button
[resolved] JS Minify (10 posts)

  1. Jon Yoder
    Member
    Posted 2 years ago #

    I've recently discovered that W3 Total Cache's javascript minify functionality breaks the Pinterest Pin It Button plugin. I'd like to be able to keep both running since W3TC keeps my site running quite a bit faster.

    Does anyone else have this problem? This is the error in the console that I'm getting while minify is on: iFrameBtnUrl is not defined

    This is my site: jonyoder.com/blog/

    http://wordpress.org/extend/plugins/pinterest-pin-it-button/

  2. Frederick Townes
    Member
    Posted 1 year ago #

    Are you using minify in auto mode?

  3. Jon Yoder
    Member
    Posted 1 year ago #

    Frederick,
    Yes I am! I just noticed that there was also a Manual mode in which I could specify which scripts to minify.

    I'll try to fiddle with this to get things working. I guess there's no way to exclude one JS file (Pin It) instead of finding the ones to include?

    Thanks for your help!

  4. Frederick Townes
    Member
    Posted 1 year ago #

    Not in auto-mode in the current release, no. That's coming in a future release.

  5. Phil Derksen
    Member
    Plugin Author

    Posted 1 year ago #

    @darkshadow, sorry for the late reply. And Frederick, thanks for helping out.

    Like other sharing buttons Pinterest's embeddable code, which my plugin is based off of, uses it's own javascript and iframe, which I suspect doesn't work well with any javascript minifier.

    In a future version I am hoping to have a non-iframe version to alleviate this issue.

  6. Phil Derksen
    Member
    Plugin Author

    Posted 1 year ago #

    FYI, if it helps there's now a non-iframe version in the free and pro versions.

  7. Jon Yoder
    Member
    Posted 1 year ago #

    Phil you're a saint! Thanks so much for your work. :)

  8. sadhaka
    Member
    Posted 1 year ago #

    Could you clarify this please Phil? Does the "non-iframe" version (in the free version) somehow overcome this problem with W3TC? Is that just the way it works now, or do I have to configure the Pinterest plugin and/or W3TC somehow ?

  9. Frederick Townes
    Member
    Posted 1 year ago #

    @Phil, do I understand correctly that W3TC is irrelevant to this issue now?

  10. Phil Derksen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Frederick. I haven't heard of any issue with W3TC compatibility since this original thread. Thanks for checking in.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic