• Resolved ma2018

    (@mef4755)


    Hi Raul,

    I use FVM on my website along with W3 Total Cache and Ad Inserter (set to be compatible with W3TC for dynamic blocks).
    When I (purge the FVM cache directory and then) disable FVM to check the difference it makes in GTMetrix’s Waterfall, my web site does not load at all and gets stuck forever trying to access /wp-content/plugins/ad-inserter/includes/js/ai-jquery.js?ver=4.8.6.

    (ai-jquery.js is a dummy (empty) file used to force to load the jQuery library.)

    As soon as I reenable FVM everything works again.

    Could this be a problem of FVM, or of Ad Inserter, or a poor interaction between the two plugins?

    Please let me know your insight into this issue.

    Thanks,

    Marco

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Raul P.

    (@alignak)

    Hi,

    If you disable FVM, then that literally means that it’s not in use anymore. That means it cannot technically affect your site in any possible way.

    If it gets stuck loading your file /wp-content/plugins/ad-inserter/includes/js/ai-jquery.js?ver=4.8.6. does that file actually exist (and does it end with a dot)? How are you checking this? Have you tried pingdom or even the google chrome tools?

    When you reenable FVM back again, it probably removes the reference to /wp-content/plugins/ad-inserter/includes/js/ai-jquery.js?ver=4.8.6. so it wouldn’t be stuck loading it.

    The real issue is, once you disable FVM or any other plugin, it’s as if it doesn’t exist. The “filtering” plugin effects will be gone and the site runs as usual.

    Also be advised that your hosting may be enforcing cache on the server level. That means, that when you do changes either on plugins, themes or content, those changes won’t be available for anonymous users such as gtmetrix.

    You can purge their cache but, most of the time there is a rate limit. You can only clear the cache once in every 15 minutes (in most providers), and it doesn’t matter if you purge it 100 times within that period, because it simply ignores your request.

    You can look at the waterfall on pingdom, before and after purging the cache and FVM.

    If you disabled FVM and purged your cache, and if you then see any reference to uploads/fvm/ on the waterfall, it means that there is a cache somewhere not being cleared.

    Thread Starter ma2018

    (@mef4755)

    Hi Raul,

    thanks for the quick response. The file does exist (I checked directly the contents of the directory) and it’s a zero byte file, as described in my earlier message. (The period was added by me to close the sentence.)

    I checked the Network tab in Safari and saw that the browser was loading all the other resources but got stuck loading that zero-byte file.

    I guess you are saying that the culprit is either stale caching or some other plugin, and FVM just filters out the bad behavior when enabled.

    For now I’ll just keep it enabled and then will try to disable it in combination with other plugins, starting with Ad Inserter…

    Thanks,

    Marco

    Plugin Author Raul P.

    (@alignak)

    FVM just filters out the bad behavior when enabled

    No, if the file is enqueued properly, FVM is probably merging it together (empty or not), that’s why it’s removed from the source code.

    Maybe try to rename ai-jquery.js to something else, remove the query string or try to add some (valid) js code inside the dummy file, just so that the file is not zero bytes.

    ie, something like: var xptoabc = 'abc';

    Spacetime

    (@spacetime)

    Hello,

    I’m the author of Ad Inserter plugin.
    The file ai-jquery.js is used only to force loading of jQuery library when needed.
    If empty file causes issues I can put some dummy content into the file.

    Thread Starter ma2018

    (@mef4755)

    Thank you both for your guidance.

    So far I have been able to reproduce the problem several times, but only with certain versions of Safari and Firefox (for mac). I have been unable to reproduce it with Chrome and with the latest version (60) of Firefox.

    When I clear the caches and use a non empty version of the file with the suggested dummy code: var xptoabc = ‘abc’; the problem does not seem to occur with any browser.

    Hence, I’ll keep using the non empty version of the file to be on the safe side.

    Thanks,

    Marco

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem disabling the plugin’ is closed to new replies.