Title: Autoptimize on reverse proxy?
Last modified: March 29, 2023

---

# Autoptimize on reverse proxy?

 *  Resolved [jeremycavender](https://wordpress.org/support/users/jeremycavender/)
 * (@jeremycavender)
 * [3 years ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/)
 * I am trying to use Autoptimize to improve mobile optimization on my WordPress
   site [https://netpayadvance.com/](https://netpayadvance.com/). We use a reverse
   proxy though that displays that URL to the end user and use a cms.netpayadvance
   address to sign in and make changes to the website.
   In trying to use Autoptimize
   and Async Javascript though it seems that no changes are taking place. I have
   tried setting the JavaScript to defer and set the above the fold CSS to eliminate
   render-blocking CSS and when I scan the site in lighthouse on Mobile the site
   still has unused JavaScript and CSS that it is telling me to reduce. I have even
   tried using a defer JavaScript function in my functions.php file for my staging
   site to see if that would help but to no avail.
 * I want to know if the Reverse proxy is the culprit as it does seem to still effect
   the desktop but not to the degree that I am seeing on Mobile and if the reverse
   proxy is the cause of Autoptimize not working, what steps can I take going forward
   to improve the performance?
   I am using Kinsta as my hosting provider and they
   basically told me that the configuration of the site could be the issue but wasn’t
   sure and to connect with the plugin support.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautoptimize-on-reverse-proxy%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16607444)
 * err … possibly 🙂
 * first of all; AO (or asyncjs) don’t help with “unused JS” or “unused CSS” as 
   they don’t remove unused code, they merely delay the loading of said code.
 * so it is possible autoptimize (and asyncjs) do work on your site, but unfortuntaly
   I can’t access it to confirm as it looks you are geo-limiting access (i’m in 
   Belgium, Europe)?
 * when you look at the HTML source of a page, do you see references to `autoptimize`
   in there?
 *  Thread Starter [jeremycavender](https://wordpress.org/support/users/jeremycavender/)
 * (@jeremycavender)
 * [3 years ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16607465)
 * Yeah, I see 12 different references to Autoptimize in the HTML, so it must be
   connected.
   I realize that it won’t get rid of the files either, I am just needing
   the files to defer and the CSS to load asynchronously so that I am not loading
   in the files 1.2 – 1.6 seconds after the page loads.I think I did end up getting
   the defer JavaScript function working in my functions.php file on my staging 
   since it isn’t coming up but there is still the issue of the CSS and Lazy Loading
   the images
 *  Thread Starter [jeremycavender](https://wordpress.org/support/users/jeremycavender/)
 * (@jeremycavender)
 * [3 years ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16607485)
 * You would have to use a VPN to access the site if you are outside of the united
   states
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16607604)
 * re. VPN; that’s unfortunate Jeremy .. :/
 * re. delaying CSS; when critical CSS is used, the full CSS is loaded in such a
   way it is not render-blocking, but it does not load 1.2-1.6s after page load.
 * for JS; deferring that makes the browser wait for the document rendering to start
   before executing, but again not for 1.xs.
 * Autoptimize Pro (premium, see “optimize more” tab) does allow longer delays if
   you *really* need that?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16680987)
 * No feedback so I assume this got resolved Jeremy? Feel free to follow up if you
   still encounter issues!
 * have a nice day!
    frank

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

The topic ‘Autoptimize on reverse proxy?’ 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

 * [kinsta](https://wordpress.org/support/topic-tag/kinsta/)
 * [reverse proxy](https://wordpress.org/support/topic-tag/reverse-proxy/)

 * 5 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/autoptimize-on-reverse-proxy/#post-16680987)
 * Status: resolved