• Resolved thiyagesh

    (@thiyagesh)


    Hi Frank Goossens,

    Your plugin is awesome, and I am also utilizing it very efficiently. But, Now I found a weird or may be easy to fix issue. On Exclude Input, we can exclude the js files which we want.

    Now, In my case as default, I have excluded jquery.js, so that it won’t cause unnecessary issues.

    Then, one of the plugin is enqueuing js file – slider.jquery.js.

    Now on our case, both of the file got excluded, how do I only exclude jquery.js, not the other one slider.jquery.js. Since, its a plugin file, I can’t change that js file name.

    I would like to hear from you.

    Thanks,
    Thiyagesh M

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Simply be more specific in your jquery exclude, e.g. the default js/jquery/jquery.js (if you’re using the core-provided jquery).

    hope this clarifies,
    frank

    Thread Starter thiyagesh

    (@thiyagesh)

    Sorry for late reply, Its works charm!!!

    Also, Is it possible to exclude all css files from specific theme folder or sub folders. (e.g. like this /wp-content/themes/theme1/shortcodes/*.css)

    Because In our theme there are more than 90 css files related to shortcodes, each css gets loaded whenever the specific shortcode is used on the page.

    Because of this, autoptimize regenerating new autoptimize files consistently leading to larger files.

    *One recommendation:*

    If exclude input option can be replaced with textarea(bigger width and height), It will be easy for us to recheck, and also we can add styles line by line. As now we need to scroll using arrows or need to copy them and check in notepad(somewhat difficult to manage πŸ™‚ )

    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    Also, Is it possible to exclude all css files from specific theme folder or sub folders. (e.g. like this /wp-content/themes/theme1/shortcodes/*.css)

    sure, just enter themes/theme1/shortcodes/ and you’ll be good to go πŸ™‚

    thanks for the recomendation, I’ll consider that!

    frank

    Thread Starter thiyagesh

    (@thiyagesh)

    Hi Frank,

    Thank you for taking my note into consideration.

    Also, If possible kindly, add option to enable/disable the log, which will add the list of css/js files compressed to create the autoptimized css/js files as comment on top of the autoptimized css, js files(Like a log). May be its useful for developers to find the difference between the two files, and exclude that dynamic files which causing cache size increasing enormously, we can also be aware of the compressed list of unused static files too.

    Thanks Again!!!

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

The topic ‘Exclude JS Issue’ is closed to new replies.