• Resolved xatanael

    (@xatanael)


    Hello,

    I have a blog on WordPress and a forum. My forum doesn’t display if I check the “optimize javascript/aggregate JS-files” box in Autoptimize settings.

    My forum engine is “Vanilla Forum” and I have the “Vanilla forum integration” plugin too.

    I really need to activate the javascript optimization on my blog, as it’s much better for speed and google SEO.

    Someone has an idea how to solve the problem?

    Thank you very much.

    • This topic was modified 7 years, 3 months ago by xatanael.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can you try adding vanilla to the comma-separated JS optimization exclusion list?

    Thread Starter xatanael

    (@xatanael)

    Just vanilla, or vanilla.js?

    So my entire exclusion list is : vanilla, seal.js, js/jquery/jquery.js ?

    With vanilla, it loads indefinitely
    With vanilla.js, it shows a blank page

    • This reply was modified 7 years, 3 months ago by xatanael.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so when using vanilla what errors do you get on the browser console?

    Thread Starter xatanael

    (@xatanael)

    Here are the errors :

    Failed to load resource: the server /applications/dashboard/design/embed.css:1 responded with a status of 404 (Not Found)

    Failed to load resource: the server /discussions-2/js/library/jquery.appear.js:1 responded with a status of 404 (Not Found)

    Failed to load resource: the server responded with a status of embed.css:1 404 (Not Found)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, use the following code snippet to disable minification of excluded JS and test again;

    
    add_filter('autoptimize_filter_js_minify_excluded','__return_false');
    Thread Starter xatanael

    (@xatanael)

    Thank you, but where can I insert this code?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    easiests/ safest way it to use e.g. the code snippets plugin to add it.

    Thread Starter xatanael

    (@xatanael)

    Wow, amazing, it works, thank you so much!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome xatanael, feel free to leave a review of the plugin and support here! 🙂

    frank

    Hello,

    I’m xatanael, but I can’t remember my password and the “recover password email” doesn’t work.

    Just to say that I have the same problem again, with Vanilla integration, since the last autoptimize update. Forum doesn’t appear if I check the “optimize javascript/aggregate JS-files” box.

    Maybe the code above doesn’t work anymore and I have to change it?

    Thank you very much :o)

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you can simply untick the “Minify excluded CSS and JS files?” option now, no more need for a filter 🙂

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

The topic ‘Forum doesn’t appear if I check “optimize javascript” box’ is closed to new replies.