Skip to main content

Why Are Some JavaScript Files Not Minified?

Updated this week

FlyingPress automatically minifies JavaScript files, but in some cases, certain files may be skipped due to the following reasons:

Skipped Minification Conditions

  • The file size reduction after minification is less than 2KB

  • The reduction is less than 10% of the original size

  • The file is already minified (e.g., ends with .min.js)

These conditions follow best practices recommended by Google Lighthouse and PageSpeed Insights to avoid unnecessary processing.

Versioning for Cache Management

To improve caching, FlyingPress replaces the typical ?ver=plugin_version query string with a hash based on the file’s contents:

  • Instead of: ?ver=3.0.0

  • You’ll see: ?ver=1689132345

This ensures browsers update the cached file only when its content changes.

Note: Minification does not apply to third-party scripts loaded from external domains.

Did this answer your question?