Articles on: Developers

Exclude files from JavaScript minify

FlyingPress UI doesn't provide an option to exclude JavaScript files from minify because it's compatible with 99.99% of the files.

However, in any chance you would like to exclude JavaScript files from minifying, you can use the filter flying_press_exclude_from_minify:js like below:

add_filter('flying_press_exclude_from_minify:js', function ($exclude_keywords) {
  $exclude_keywords = ['my-theme'];
  return $exclude_keywords;

Updated on: 23/11/2023

Was this article helpful?

Share your feedback


Thank you!