• Resolved maxhrkt

    (@maxhrkt)


    Hi,
    Autoptimize functionality to aggregate JS-files reduces my load time dramatically, but it breaks the functionality of header (sticky header, dropdown…) and woocommerce products on landing page. Also, the slider stopped working, and my css is altered. When I turn off aggregate JS-files everything works fine, but is slow as it was before…

    I wanted to exclude some .js scripts from being aggregated but that doesn’t work for me, so please help.

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

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

    (@optimizingmatters)

    well, start with;
    * unticking the try/catch wrapping option
    * disable JS/ CSS optimization in WP Fastest Cache (using 2 plugins to do CSS/ JS optimizatoin/ minification/ … can break things in unexpected ways)

    and once that is done have a look at what JS errors are still shown on the browser console ?

    frank

    Thread Starter maxhrkt

    (@maxhrkt)

    Thank you for the fast reply..Now, everything seems to be working fine, I still have some errors in console, but they do not mean much to me, to be honest.

    Thanks for your help, for now, I will try to turn on some additional modification features and see if it will work

    Hello sir,

    I have facing issue when i enable Aggregate JS-files? on autoptimize plugin.

    JS is blocked. I have already installed Lazy load plugin.

    Can you give me proper solution plz.

    i was go with above reply but not worked.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    what do you mean when you write “JS is blocked” jvsqes ?

    Thanks for quick reply..

    I have used Autoptimize plugin for speed up website but last few days there are issues coming on this plugin. Without tick Aggregate JS-files? this option website working properly but speed on google insight displaying too low. but when i tick Aggregate JS-files? this option – website all images disappear – js not working. Popup not working, testimonial slider working stop.

    Can you guide me how to rectify this issue?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well:
    * can you share your site’s URL?
    * when JS aggregate is on, what JS errors are shown on the browser console?

    Sure..
    https://www.softclinicpro.com/
    Currently i am enable Aggregate JS-files? option. Images not displaying & JS not working.
    ON browser console show below error:
    https://www.softclinicpro.com/:310 GET https://www.softclinicpro.com/wp-includes/css/dashicons.min.css?ver=5.3.2 net::ERR_ABORTED 404
    autoptimize_6666f6434485504157568b38349a2c61.js:95 Uncaught TypeError: Cannot read property ‘addEventListener’ of null
    at autoptimize_6666f6434485504157568b38349a2c61.js:95
    (anonymous) @ autoptimize_6666f6434485504157568b38349a2c61.js:95

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, can you try adding plugins/wp-megamenu to the comma-separated JS optimization exclusion list?

    Thank you sir.. I have added “plugins/wp-megamenu” on optimizatin exclusion list. Now JS is working fine. But still Images are not show. may be issue with ‘Lazyload by WP Rocket’ plugins which i used for improving page loding time.

    Can you suggest me for images issue. i have also tried to add “plugins/rocket-lazy-load/” on optimizatin exclusion list but not worked.
    https://www.softclinicpro.com/

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    I think you have “also aggregate inline JS” on, can you untick that and try again?

    Yes, Thanks. Now its working fine.
    But still some error displaying n google console: Check below snap:
    https://snipboard.io/HPUeyN.jpg

    Also Google PageSpeed Insight displaying 17 for mobile & 62 for Desktop.
    https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.softclinicpro.com%2F&tab=mobile

    Can you suggest me how can i increase it?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you have the same errors when AO is not active (by virtue of the ?ao_noptimize=1 parameter);

    re. pagespeed insight; I the first thing to do would be installing a page cache plugin such as “keycdn cache enabler” or “wp super cache”?

    I am going through exactly the same thing. I have followed every steps you directed here yet my own problem is not getting resolved. The only way it gets resolved is to uncheck both the aggregate JS and CSS files. And when I do it, the site loads slow.
    The site is stclementpope.org

    Whenever I either or both js and css, the pop up stop, submenus stop, post widget start displaying like a chainsaw victim. Please what can I do to fix this?

    In addition, some images in the homepage won’t show any longer even after I have unchecked the js and css options. I thought it was the smush pro plugin but the issue persisted after I have deactivate the smush pro.
    The steps you suggested here, are not working for me.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Autoptimize Aggregate JS-files breaks functionality of website’ is closed to new replies.