Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Cyril,

    Yes, there has.

    Can you confirm that it is not your browser (cache) having trouble to catch-up? Got a live URL for me to take a look at?

    Thanks!

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    It doesn’t appear to be a browser caching issue. I’ve cleared all caches in my caching plugin and have tried across a few browsers.

    I’m not using it yet on the live site, but this is a testing page I’ve set up. The form is in the footer (click to open).

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hmm.

    Your combined (& minified) JavaScript file is loaded in the header while some variables needed by the script are declared later, in the footer (where the script is supposed to load).

    This way, the plugin script runs before the variable is declared, which is why it throws an error right now. It doesn’t know which form to scroll to.

    Moving the script to the footer (which is recommended) should fix it. Or just do not include the script in your minify rules – it will only be loaded for people who submit your form anyway. You can configure this in the W3 Total Cache settings.

    I will look for a way to workaround this as well.

    PS. in W3 Total Cache > Combine & Minify, are you using Manual or Auto method?

    Thanks!

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    Ah, thanks Danny – that sounds about right. I’ll have a fiddle with those settings. (EDIT: Just disabled W3 Total Cache to check and the scroll worked again, so yes, it’s definitely a Javascript placement issue.)

    I’m using the auto minify method.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Cyril,

    Great, I see you managed to resolve this. Was it an easy fix for users to do?

    Reason I ask is because I’m wondering whether I should include a workaround for this in my plugin, as it’s basically a caching configuration issue and not a plugin issue.

    Thanks – will mark this as resolved!

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    I resolved the issue through manual placement: I moved the minified JS to the bottom of the document by inserting <!-- W3TC-include-js-head --> before the closing </body> tag.

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Cyril.

    Ok, great work. Not sure if everyone would be able to do that so will just include a workaround in the plugin itself too, just to make sure. ??

    Thanks again!

    Thread Starter C W (VYSO)

    (@cyril-washbrook)

    No worries, thanks for all the help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No longer scrolling’ is closed to new replies.