• Resolved Anonymous User 16052280

    (@anonymized-16052280)


    The update from 1.3.3.1 to 1.3.3.2 deactivated my .js files, crashing the website. I deactivated the plugin and the website successfully restored functionality.

    I am using Asset CleanUp for a couple of months and this is my first such experience.

    Thank you,
    Andrei

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @andrei0luca Thank you for raising this ticket and hopefully this is an isolated case as the plugin is reported to work fine on other WordPress installs. Can you re-enable the plugin with “Test Mode” (this way the website will be ‘crashed’ only for you) and let me know what JS files are unloaded? What other optimization plugins are you using besides Asset CleanUp?

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Hi Gabe,

    The problem seems to be the plugin jQuery Updater 3.4.1. Asset CleanUp 1.3.3.2 does not return any errors when deactivating jQuery Updater.

    I can provide you more info if needed.

    Plugin Author Gabe Livan

    (@gabelivan)

    @andrei0luca If that’s the case, then it’s likely jQuery library is somehow unloaded and triggers a cascading unload effect on other files depending on it.

    I’ve made tests with jQuery Updater 3.4.1 and everything is perfectly fine on my end in all situations. Have you marked jQuery Migrate for Site-Wide Unload? I’d like to know more about it, definitely!

    Also, I’d like to know the reason why you have chosen to use jQuery Updater.

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Hi Gabe,

    That is correct. jQuery Migrate was unloaded in Asset CleanUp and that was causing the problem. But it was also unloaded in 1.3.3.1 and did not cause any issues.

    I am using jQuery Updater because my paid theme is (a little) old and loading an old jQuery version. So it’s a solution for having jQuery up to date.

    Plugin Author Gabe Livan

    (@gabelivan)

    Hi, Andrei!

    I made further tests and it looks like the reason why it worked before was the fact that jQuery Migrate was not unloaded IF you were using jQuery Updater plugin. The unload was working and the actual code that performs the unload was added IF jQuery Migrate was loaded by the WordPress itself (not a plugin that alters the load functionality).

    So, it looks like your theme needs jQuery Migrate (latest version) which was loaded after all (still a bug because if you mark jQuery Migrate for unload in Asset CleanUp, it should unload it in any situation, even if jQuery Updater or any other plugin is used). It’s enough to check the console and if you have red JS errors after JQuery Migrate is unloaded, then it’s better to keep it. After all, we’re talking about loading an extra 7KB here (smaller than the original jQuery Migrate from the WordPress core which is ~10KB), an insignificant price to pay for having maximum compatibility between your theme scripts and latest jQuery version.

    Does that help? Please let me know if after checking the console and further testing you find anything else.

    PS: Thanks for reporting this! I made a few changes that will make sure jQuery and jQuery Migrate will remain in the WordPress Core list that you see when managing the assets to avoid confusions of the files being unorganized because jQuery Updater loads different versions of the file. If you will ever be interested in Asset CleanUp Pro, I can give you a hefty discount as a thank you for alerting me about jQuery Updater and the way it works.

    Thanks,
    Gabe

    Thread Starter Anonymous User 16052280

    (@anonymized-16052280)

    Hi Gabe,

    Yes, your explanation does help because it is very thorough and clear. After further testing at this point Asset CleanUp 1.3.3.2 is working without problems.

    I selected Asset CleanUp as my only optimization plugin so I will definitely go Pro.

    Thank you,
    Andrei

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

The topic ‘Plugin Update Error’ is closed to new replies.