Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1012427

    My hompeage slider vanishes when I enable autoptimize JS options. The author said I need to ask, “what JS is used for the slider and exclude that from optimization.” Since LayerSlider is included in this theme, I cannot find a support area from within a plugin, so I am hoping y’all can tell me what scripts to exclude from autoptimize.

    Thanks!
    Jon

    #1012578

    I tried to goto the author of Layerslider to submit a ticket, but since layerslider was included with Enfold, I cannot provide a purchase code. Are y’all able to get with them to ask what JS code to exclude from Autoptimize?

    Thanks
    Jon

    #1012608

    Hi,

    Thank you for using Enfold.

    Can we see the site? We would like to inspect it. You can try to exclude these scripts and stylesheets:

    layerslider : /static/layerslider/js/layerslider.kreaturamedia.jquery.js
    layerslider: : /static/layerslider/css/layerslider.css
    layerslider-front : /static/public/front.css
    layerslider-greensock : /static/layerslider/js/greensock.js
    layerslider-popup : /static/layerslider/plugins/popup/layerslider.popup.js
    layerslider-popup : /static/layerslider/plugins/popup/layerslider.popup.css
    layerslider-transitions : /static/layerslider/js/layerslider.transitions.js

    Best regards,
    Ismael

    #1012617

    The site is gatehealing.com .

    I’ll send login creds in private box in case that’s what you’re wanting to see. Should you want to see what I am talking about, goto the Autoptimize settings, then check the JavaScript Options > Optimize JavaScript code, then hit blue “save changes and empty cache” button. If you will click the Clear Cache in top of the wordpress window, then clear your browser history, you should duplicate the problem (I cannot replicate the issue until I do all of that). I have it showing the slider for now so my visitors get a good experience.

    I am going to try to exclude some of those scripts to see if it fixes the issue. I’ll come back here and post if it does get fixed.

    Thanks!
    Jon

    #1012623

    Ok, I tried adding the scripts with the slashes, and replacing slashes with periods, nothing seemed to work.

    Jon

    #1013233

    Hi,

    I fixed it by adding jquery.js to the excluded script list. If jquery is not excluded autoptimize loads it after some other scripts which require jquery.

    Best regards,
    Peter

    #1013368

    Thank you Peter! So simple, yet elusive to a newb!

    Do I mark this thread as “solved” someplace?

    Best
    Jon

    #1013381

    Hey!

    Glad I could help you! I’ll close the thread.

    Regards,
    Peter

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘What to scripts to 'exclude from autoptimize' plugin.’ is closed to new replies.