Title: error JS, HTML and speedtest
Last modified: August 22, 2016

---

# error JS, HTML and speedtest

 *  Resolved [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/)
 * I’m getting a 500 error from Google PageSpeed Insights when I have the JS option
   checked.
 * PageSpeed Insights cannot read the mobile version url when I have the HTML option
   checked. I have a responsive theme.
 * This is probably a conflict with W3 Total cache.
 * Can you please advise me on the settings?
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886495)
 * First of all; you don’t get these errors when browsing the site yourself?
 * Assuming “no”; Although I have not been able to reproduce the error and it does
   not seem to be a general one (as with a lot of issues this is specific to the
   javascript/ CSS that themes & plugins insert), I’ve seen [one other user](https://wordpress.org/support/topic/500-error-in-woocommerce-pages-when-crawled-by-googlebot?replies=15)
   with a similar problem with errors thrown when GoogleBot visited his site.
 * The [solution in that thread](https://wordpress.org/support/topic/500-error-in-woocommerce-pages-when-crawled-by-googlebot?replies=15#post-6030844)
   would be applicable to your problem as well (except you might have to change 
   the useragent name to the one used by Google Pagespeed Insights).
 * Hope this helps,
    frank
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886530)
 * Thanks, Frank. Browsing the site itself gives no errors.
 * Testing leads to the conclusion that the problem is in the combination of Autoptimize
   and the W3 Total Cache Minify section. PageSpeed Insights can do its job when
   I uncheck the HTML minify settings in W3 Total Cache. The other option is to 
   use Total Cache minify, but then I need to uncheck both HTML and JS options in
   Autoptimize. I am not sure yet which combination gives the best results.
 * The CSS sections can be combined without errors.
 * The solution in that thread does not work for my site.
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886532)
 * Now I get a warning: Recently an error occurred while creating the CSS / JS minify
   cache: No sources to serve.
    W3 Total Cache warning has discovered the same issue.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886534)
 * ah, but one should never combine different HTML/CSS/JS minification plugins. 
   if you want to use AO, you should disable HTML/CSS/JS minification in W3TC. I
   should add that to the FAQ really.
 * frank
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886536)
 * Thanks, Frank! Now I just have to find which plugin gives the best results.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886537)
 * just to be clear, you can use W3TC (on the contrary, you really _should_ use 
   a page caching plugin), you just can’t use W3TC’s minification together with 
   AO’s.
 * frank
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886539)
 * Thanks, I understand. Both plugins give same results for minification. I have
   to find another way to further speed up my site.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886542)
 * you could consider inlining your CSS (if not too large) and/ or inlining background
   images as data uri’s in your CSS?
 * what do tests such as google pagespeed insights and webpagetest.org say?
 * frank
 *  Thread Starter [ditad](https://wordpress.org/support/users/ditad/)
 * (@ditad)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886619)
 * Google is fickle. Yesterday the first thing to do was improving server response
   time and reordering css and js (not done yet), today I need to resize images (
   what I already did).

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘error JS, HTML and speedtest’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [pagespeed](https://wordpress.org/support/topic-tag/pagespeed/)

 * 9 replies
 * 2 participants
 * Last reply from: [ditad](https://wordpress.org/support/users/ditad/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/error-js-html-and-speedtest/#post-5886619)
 * Status: resolved