Articles on: Developers

Exclude files from JavaScript minify

Although FlyingPress is compatible with 99.99% of JS files, it doesn't provide a UI option for excluding them from minification.

However, you can still manually exclude specific JS files if needed using the filter flying_press_exclude_from_minify:js:

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

Updated on: 18/12/2023

Was this article helpful?

Share your feedback


Thank you!