Support » Plugin: Infinite-Scroll » [Plugin: Infinite Scroll] Not compatible with HeadJS

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor beaver6813

    (@beaver6813)

    I can confirm the bug but I think this is more of a headjs issue. It buffers the entire page and then inserts all the javascript files its removed, just before the closing head tag. In my mind it should also regex search for other scripts (not linked) and place those below the headjs code. Having said that, I guess it would be just as tidy to export the infinite-scroll init to a linked script.

    Plugin Contributor beaver6813

    (@beaver6813)

    Would you be able to try this test build please? It includes some major changes to the way infinite-scroll is initiated and combines the init and library effectively into one file that HeadJS loads. I’ve tested this out on TwentyTen and it works fine but theres still some efficiency changes I want to make before release.
    http://downloads.wordpress.org/plugin/infinite-scroll.2.0b2.110716_RC1.zip

    Ramoonus

    (@ramoonus)

    got it!

    Plugin Contributor beaver6813

    (@beaver6813)

    Any luck with the test build? Any feedback (negative is usually most helpful!)?

    Ramoonus

    (@ramoonus)

    the plugin shows up twice in the plugin list (wp-admin/plugins.php)

    Plugin Contributor beaver6813

    (@beaver6813)

    Ahh good spot, any other issues?

    Ramoonus

    (@ramoonus)

    nope
    i havent actually tested to be honest
    can I take the latest subversion version?

    Plugin Contributor beaver6813

    (@beaver6813)

    If you’ve got a subversion client, I’ve uploaded a version with a few changes to http://plugins.svn.wordpress.org/infinite-scroll/tags/2.0b2.110723_RC1/
    If not then WordPress will generate a zip at http://wordpress.org/extend/plugins/infinite-scroll/download/ for 2.0b2.110723 soon.

    Let me know how it goes!

    Ramoonus

    (@ramoonus)

    got it 🙂

    Ramoonus

    (@ramoonus)

    head.js(“http://www.ramoonus.nl/wp-content/plugins/infinite-scroll/infinitescroll.init.js.php?p=YToyOntpOjA7YToyOntpOjA7czoyODoiaHR0cDovL3d3dy5yYW1vb251cy5ubC9wYWdlLyI7aToxO3M6MToiLyI7fWk6MTtzOjMyOiI1NDIzMjdiMjg1NDJkYjc0NTA1ZDI1MWM5YjM4MTU1MSI7fQ==”)

    why is there such a long hash behind for the P var?

    Plugin Contributor beaver6813

    (@beaver6813)

    Because we’re calling the script/javascript file, when it loads it doesn’t know what page you’ve called it from. (If that makes any sense!) So the P variable contains the pathParse setting and a signature (to prevent tampering).
    I considered setting the variable before we call the file but then it causes the issues with HeadJS again, so I thought it was best to keep everything in one place.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Infinite Scroll] Not compatible with HeadJS’ is closed to new replies.