Background of the issue:
I am working on a site under development and trying to improve performance scores for high traffic sites. I am looking to have minified versions of the JavaScript files language-cookie.js and xdomain-data.js included instead of the unminified ones.
Symptoms:
No specific issue or error message mentioned.
Questions:
Any chance you include minified versions of your JavaScript files language-cookie.js and xdomain-data.js instead of the unminified ones?
I analyzed a fresh install of WPML on Page Speed Insights, but it didn't deduct any points for the specific files you mentioned not being minified. To be able to evaluate that if our team, I'll need you to please send us a screenshot of the report, where we can see this message - as I said this server as an argument. Also, if it's something specific to your website, we can perhaps look for a workaround.
Hey Lucas. Didn't I answer the question about the screenshot in my chat 🙂 ... what I mean I explained why i's currently hard for me to provide that and agreed that even without that argument minifying front end resources like JavaScript and CSS is always a better approach.
I understand that. The thing is, I couldn't verify that this behavior is a global WPML issue, as it didn't happen on a fresh installation. Thus, I cannot create a feature request, as it might not be a missing feature. It's possible that the issue is specific to your website, and that needs verification.
Without your report, I have nothing to escalate or to verify. I understand that this takes some effort from your side.
Ah so there is no option for you to add that feature request just because it's considered a best practice on sites like this (hidden link) to minify front end assets like JavaScript and CSS?
Hej Lucas. The website is in development and I can't share the URL but I don't need to for you to confirm this. This is not an issue caused by some code but just the way your plugin works. You can look at any website that uses WPML and you'll see that the files sitepress-multilingual-cms/res/js/cookies/language-cookie.js and sitepress-multilingual-cms/res/js/xdomain-data.js are not minified. That's part of your plugins code and visible just by checking the code without event running WPML.