[Resolved] Infinite Scroll Not Working Under CDN

Home Forums Support Infinite Scroll Not Working Under CDN

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1393533
    Fahmi

    Hi!

    I am seeing error in my blog after CDN is activate.

    Below is the error:

    Uncaught ReferenceError: blog is not defined
    at HTMLDocument.<anonymous> (scripts.min.js?ver=1.11.1&iv=30:1)
    at i (jquery.js?ver=1.12.4-wp&iv=30:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp&iv=30:2)
    at Function.ready (jquery.js?ver=1.12.4-wp&iv=30:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp&iv=30:2)

    My blog use Comet Cache plugin.

    Infinite scroll work normally in http://www.blog.com. All javascript and css work perfectly.

    But when CDN is enable, cdn.blog.com. This will produce error above and infinite scroll does not working.

    #1394263
    David
    Staff
    Customer Support

    Hi there,

    hmmm… not sure how the script will function when content is served from a 3rd party.

    Can we see the site with the CDN in place ?

    #1394498
    Fahmi

    Hi!

    I have edit and add the link to my website.

    Would you please take a look. Maybe I do something wrong.

    The error only occur when cdn is activated.

    I have activated the cdn for you to see and the infinite scroll button is not loading when click.

    Thank you.

    #1394978
    David
    Staff
    Customer Support

    I am not sure its possible to change the Infinite Scroll behaviour – i will check with Tom.

    #1395120
    Fahmi

    Alright.

    But I have deactivate the cdn function. Hope it can be solve.

    #1395781
    Tom
    Lead Developer
    Lead Developer

    I believe that error is happening because the file is cached. blog is no longer a variable in the javascript file.

    What happens if you clear/purge all caches?

    #1395881
    Fahmi

    I have tried cleared cache. Trying open website using incognito mode. Open with different browser. It not working and still got error.

    It will work when using cache plugin without cdn. And only not work when cdn is enabled.

    #1395902
    Tom
    Lead Developer
    Lead Developer

    As a guess, the CDN is loading the old version of the javascript file. Is there any way to force the CDN to grab the updated files?

    #1395922
    Fahmi

    I got it working now.

    It look like cdn is loading the old version of the javascript.

    Thanks for your help. 🙂

    #1395951
    Tom
    Lead Developer
    Lead Developer
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.