WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Dave's WordPress Live Search] Doesn't work with Web Optimizer (5 posts)

  1. cadbloke
    Member
    Posted 4 years ago #

    Me again. Just to prove I can break anything. This one isn't even your fault but I was wondering if you could perhaps give me a tip or 2.

    Your plugin works fine, as per my previous post about excluding pages... except when I activate the Website Optimizer plugin. Then it seems to stall. It breaks on the ajax request. The JavaScript in the page seems ok (the busy animation starts) but it looks like the ajax request back to the server is being blocked. It is obviously (uh, probably) Web Optimizer blocking this request. What is it blocking, exactly? Which target should I exclude from website optimizer?

    http://wordpress.org/extend/plugins/daves-wordpress-live-search/

  2. Dave Ross
    Member
    Posted 4 years ago #

    I found out there's an AJAX API built into WP that I should probably be piggy-backing onto. Maybe that would fix it?

    I'll try to investigate this week.

  3. cadbloke
    Member
    Posted 4 years ago #

    No worries. Please update this when you get around to it and I'll let you know how it goes.

    FYI - I don't think it's the ajax request. I watched it with FireBug and the response comes back but seems to be ignored by the client-side receiver. The busy animation in the search box continues until you delete all the characters from the search field. It looks like a CSS / JQuery issue. Much more fun.

    The same thing happens regardless of whether it is the standard theme, iPhone (wptouch) or mobile (WordPress Mobile Edition). I am also working through the issue with the Web Optimizer people at http://code.google.com/p/web-optimizator/issues/detail?id=178&q=wordpress&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Plugin

    I have left the plugin activated at http://www.cadbloke.com for your viewing pleasure.

    cheers
    :)

  4. cadbloke
    Member
    Posted 4 years ago #

    Update (missed the editing time on the last update) by a couple of seconds)

    With Web Optimizer on the ajax response is gzip'd. Would that mean the function looking for the return doesn't get it? Have a look at the screen grab I posted at the (bloated) Google code URL above to see what I mean.

  5. cadbloke
    Member
    Posted 4 years ago #

    FYI - it was a bug in Web Optimizer, adding a logo-link to the ajax response. They have a fix coming in the next version.

    Also FYI - they said this: "P.S. Testing this situation bring down test web server due to large amount of requests from this plugin. I think it's not a good choice for a high loaded websites (requests from typed text should be sent in 100 ms each, not with every typed letter)."

    I thought you should know. I don't see this as an issue for my site (I'll never be that popular) but you may want to consider some type of request-throttling for the popular crowd.

    cheers

Topic Closed

This topic has been closed to new replies.

About this Topic