1. Home
  2. Web Content
  3. Disabling PageSpeed

Disabling PageSpeed

Contents

Overview

In rare certain situations, PageSpeed may make debugging a staging site more difficult or interfere with custom JavaScript that manipulates the DOM in a HEAD tag. Although likely unnecessary to disable, PageSpeed may be disabled on your site with a simple htaccess directive:

  1. Create a file named .htaccess in the document root of the affected web site
  2. Add the following line to the end of the file:
    ModPagespeed off

Important: disabling PageSpeed support will disable automatic Google Analytics integration. Instead of disabling PageSpeed, consider disabling the conflicting processing rule, e.g. to disable CSS rewriting:

ModPagespeedDisableFilters rewrite_css

Updated on July 8, 2019

Was this article helpful?

Related Articles

Need Support?
Can’t find the answer you’re looking for? Don’t worry we’re here to help! If you get an error, visit https://lithiumhosting.com/support instead.
Contact Support