Quantcast
Channel: WordPress.org Forums » [Autoptimize] Support
Viewing all articles
Browse latest Browse all 14094

lenau on "[Plugin: Autoptimize] CSS and JS files are ignored during minification"

$
0
0

Hi,

I tested the plugin on my local developer installation and it worked great. I got all CSS and JS minified and combined.

When I moved to my production setup, however, the plugin seems to ignore most of the JS files and all CSS files, i.e. they are not included in the combined files created by autoptimize and still are linked in the resulting HTML.

I've set the options: "Optimize JavaScript Code" and "Optimize CSS" and "Save aggregated script/css as static files?"

I get minified CSS files but they are not complete. The CSS only includes the CSS that was originally inline and ignores all my theme's CSS files.

The combined JS only seems to include jquery that is part of Wordpress but not the JS files of my theme, e.g. the first of the following examplesis include the second is not:

<script type='text/javascript' src='https://paperpile.com/blog/wp-includes/js/jquery/jquery.js?ver=1.11.0'></script>

<script type='text/javascript' src='https://paperpile.com/blog/wp-content/themes/paperpile-blog/js/retina.min.js?ver=1.3.0'></script>

The live version of my blog is here:
https://paperpile.com/blog/2014/07/10/improved-google-docs-citations/

I have a quite unusual setup, not sure if this is related. The blog lives behind a nginx reverse proxy and forwards to another server. Also I'm using the HTTPS plugin because everything is HTTPS.

Any tips are welcome. I've tried everything I could think of but with no success.

Thanks for your help and the great plugin,
Stefan

https://wordpress.org/plugins/autoptimize/


Viewing all articles
Browse latest Browse all 14094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>