• Resolved panosp

    (@panosp)


    I have instal the plugin WP-Optimize (Version 4.4.0) and the moment I activate the function Enable Minify the language selection with the flag is not displayed on any page. Also can’t translate pages

Viewing 1 replies (of 1 total)
  • Plugin Support johndagelmorejextensions

    (@johndagelmorejextensions)

    Hi,

    this is not an issue caused by GPTranslate, but a known limitation of WP-Optimize.

    WP-Optimize currently has incomplete support for modern JavaScript, especially ES modules (type="module").
    When JavaScript minification / processing is enabled, WP-Optimize rewrites and caches ES module scripts before WordPress filters and exclusions are applied, making it impossible to reliably exclude modern JS files.

    As a consequence:

    • exclusion rules (by filename or path) do not work with type="module
    • the original GPTranslate scripts are rewritten into cache/wpo-minify
    • this breaks the language switcher and page translation

    What you can do:

    • Recommended: disable “Process JavaScript files” in WP-Optimize
    • Or open a topic in the WP-Optimize support forum and ask the developers to properly support:
      • ES modules
      • modern exclusion handling
      • hooks for module scripts

    Alternatively, you may consider using a more modern optimization plugin that fully supports modern JavaScript and selective exclusions.
    Our optimization plugin WPSpeed handles ES modules and exclusions correctly without breaking frontend functionality.

    At the moment, the only way to preserve the original GPTranslate JavaScript files with WP-Optimize is to keep JavaScript processing disabled.

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.