Okay
  Public Ticket #3615983
Provide CSS and JS files to exclude
Closed

Comments

  • Keith started the conversation

    In your own support section, you recommend disabling minifying and combing of CSS and JS files in your caching plugin, which is not really an option unless you want to degredate your loading speed. 

    https://sonaar.io/docs/how-to-optimize-and-speed-up-your-website/

    If you are using WP Rocket, (or any cache plugins), make sure that:

    1- Page HTML Cache is activated
    2- Disable Minify CSS and Minify JS (Our files are already minified thus, it will create conflicts)
    3- Disable Combine CSS and disable Combine JS

    A better option, would be for you to provide people the specific files from the Sonaar plugin to be excluded for combing and minification from the Sonaar plugin as opposed to all the others on my website. 

    I had previously asked you and you suggested I get a developer. I can hunt down all your files but I doubt all of them need to be excluded, and  it would make more jelpful for you to just say "exlude x,y, and z" from your caching plugins minifying and combining sections so as not to turn these imporatant functions off for the sake of this one plugin. 

  •  1,114
    Max replied

    Hi,

    I have not tested by excluding specific files, but I perhaps you can try by at least these 3 files

    /wp-content/plugins/sonaar-music-pro/public/js/iron-audioplayer/iron-audioplayer.js
    /wp-content/plugins/sonaar-music-pro/public/js/sonaarPlayer.js
    /wp-content/plugins/sonaar-music-pro/public/js/sonaar-music-pro-public.js

    If it still does not work for you, you can drill down by adding those files as well:

    /wp-content/plugins/sonaar-music-pro/public/js/list.min.js
    /wp-content/plugins/sonaar-music-pro/public/js/perfect-scrollbar.min.js
    /wp-content/plugins/sonaar-music-pro/public/js/vue-multiselect.min.js
    /wp-content/plugins/sonaar-music-pro/public/js/vue.min.js
    /wp-content/plugins/sonaar-music-pro/public/js/vue-slider-component.min.js
    /wp-content/plugins/mp3-music-player-by-sonaar/public/js/sonaar-music-public.js
    /wp-content/plugins/mp3-music-player-by-sonaar/public/js/iron-audioplayer/00.moments.min.js
    /wp-content/plugins/mp3-music-player-by-sonaar/public/js/sr-scripts.js


    Tell me how it goes.


    Thanks,


    Max from the Sonaar.io Crew

  • Keith replied

    Thank you! I excluded the three suggestions and have cleared my cache. I'll let you know how it goes. 

  • Keith replied

    Good news, IT WORKS! Exclusion is a better option for those that don't have your theme. 

    Thanks!

  •  1,114
    Max replied

    Well, i've just noticed that the article you pointed to refers to our Themes only...I will fix this in our documentation


    Thanks,


    Max from the Sonaar.io Crew

  • Keith replied

    Yes, I got that impression. 

  • Keith replied

    Correction, do not exclude this: /wp-content/plugins/sonaar-music-pro/public/js/sonaar-music-pro-public.js

    Doing so prevents the play icon from appearing. 

    The first two are perfect for escaping the lazy load function of my caching plugin Nitropack. There's another ongoing issue with formatting of lists where everything is listed as 1. but I've ruled out this plugin as the issue.