• Resolved andreasra

    (@andreasra)


    Dear Autoptimize-Team,

    Today I had the following issue on our frontpage: https://www.thearcticinstitute.org

    Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.This includes make eliminates the revolution slider libraries, and make it not work.

    Turning off Javascript optimisation in the Autoptimize settings fixed the problem. However I guess this will have some impact on performance.

    Any other idea on how the problem could be fixed? It appeared out of the blue. We also use W3 Total Cache.

    Thanks a lot!!
    Andreas

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

    (@optimizingmatters)

    revslider can be a pain to optimize ??

    first all; make sure your jquery.js is excluded from JS optimization and then test while keeping an eye on the browser console for JS errors and feel free to report back here.

    also; make sure all minification is disabled in W3TC.

    even easier would be if you’d have a non-production site where you can leave things broken for me to review?

    frank

    Thread Starter andreasra

    (@andreasra)

    Hei Frank,

    Thanks for your quick answer. Funny thing is that we didn’t have a problem with revslider for almost years now; just appeared out of the blue yesterday.

    jquery.js was excluded – js/jquery/jquery.js; so I guess that wasn’t the issue; the same goes with the minification issue in W3TC which was disabled.

    Any settings I can potentially change within revslider maybe? I could send you a screenshot or something from the error I got yesterday?

    Thanks so much!!
    Andreas

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    so any JS errors on the browser console?

    Any settings I can potentially change within revslider maybe?

    If I remember correctly revslider indeed has some options on the general settings page that impact how/ when/ where JS is loaded, maybe try playing with those?

    Thread Starter andreasra

    (@andreasra)

    Unfortunately, no solution if changing revslider’s global settings. Tried two things: 1) turned off “Include RevSlider libraries globally” and 2) inserted JavaSscript Into Footer. Both didn’t make a difference.

    With regard to JS errors, Chrome for example indicates:

    Uncaught TypeError: Cannot read autoptimize_3b4d361e086d4f68eaeaa6b65c41acaa.js?x62767:1034
    property ‘flowRight’ of undefined
    at Module.308 (autoptimize_3b4d361e086d4f68eaeaa6b65c41acaa.js?x62767:1034)
    at r (autoptimize_3b4d361e086d4f68eaeaa6b65c41acaa.js?x62767:1034)
    at wp.data.0 (autoptimize_3b4d361e086d4f68eaeaa6b65c41acaa.js?x62767:1034)
    at autoptimize_3b4d361e086d4f68eaeaa6b65c41acaa.js?x62767:1034

    Is that of any help?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    With regard to JS errors, Chrome for example indicates:
    Uncaught TypeError: Cannot read property ‘flowRight’ of undefined […] Is that of any help?

    yeah, maybe .. can you try adding wp-includes/js/dist/ to the comma-separated JS optimization exclusion list?

    Thread Starter andreasra

    (@andreasra)

    Excellent, adding wp-includes/js/dist/ seems to work!!

    Chrome only indicates one issue (which does not seem to have an impact on the revslider though):

    Uncaught Error: only one instance of babel-polyfill is allowed autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792
    at Object.<anonymous> (autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792)
    at Object.<anonymous> (autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792)
    at n (autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792)
    at autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792
    at autoptimize_d03a17747a7e7d91dbd7159b151e77e0.js?x62767:792

    Is that a bigger issue?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I also saw the

    only one instance of babel-polyfill is allowed

    warning when JS opt. was not active if I remember correctly ??

    Thread Starter andreasra

    (@andreasra)

    True, the warning also exists when JS opt is not active; however, IF active it highlights autoptomize.

    Although the revslider works properly now, some parts of the front page are still not loading; the same goes for the expert pages: https://www.thearcticinstitute.org/experts

    Babel-polyfill is also highlighted as error there.

    Thread Starter andreasra

    (@andreasra)

    Alrighty, I excluded babel-polyfill.js from Autoptimize and it seems the page is now properly loading (rather slow though).

    However, all browser console still highlight the babel-polyfill error, referring to autoptimize.

    Will try to further read into it, however, any help definitely needed!!

    Thanks so far!!!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    However, all browser console still highlight the babel-polyfill error, referring to autoptimize.

    as AO aggregates all but excluded JS (and CSS), it also “inherits” the errors. the solution however is not with AO but with the original JS (in this case; the give plugin loads babel-polyfill.js but babel is also included in wp-includes/js/dist/vendor/wp-polyfill.js.

    the fact that autoptimize is still mentioned is because Give’s babel-polyfill JS-file is not minified (well, it is, but the filename does not indicate it is), so AO minifies it resulting in an autoptimize_single_xyz.js url. You can disable the minification of excluded files with this code snippet (but you’ll still have the warning);

    
    add_filter('autoptimize_filter_js_minify_excluded','__return_false');

    hope this clarifies,
    frank

    Thread Starter andreasra

    (@andreasra)

    Sorry for the late reply Frank, but thanks so much for your help and clarification!!!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

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

    Hi, I started getting following error in Revolution Slider after activating Autoptimize
    Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.
    This includes make eliminates the revolution slider libraries, and make it not work.

    To fix it you can:
    1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.
    2. Find the double jquery.js include and remove it.

    I have excluded seal.js, js/jquery/jquery.js, wp-includes/js/dist/ (as was suggested earlier) in “Exclude scripts from Autoptimize”, but that didn’t resolve the issue.
    Please help.

    Thank you,
    Dasha

    • This reply was modified 5 years, 12 months ago by ballroomdream.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Can you share your site’s URL Dasha?

    Hi @optimizingmatters ,
    Thanks for getting back to me. My web site is.
    https://weddingdancenewjersey.com/

    Seems like issue is intermittent. When I reload the browser a several times error goes away, then comes back.

    Please note, when I am logged on to WP as wp-admin, no error

    Thank you,
    Dasha

    • This reply was modified 5 years, 12 months ago by ballroomdream.
    • This reply was modified 5 years, 12 months ago by ballroomdream.
Viewing 15 replies - 1 through 15 (of 46 total)
  • The topic ‘Revolution Slider Error’ is closed to new replies.