Chapter 5. The AI-Assisted Optimization Run

What You Need Pro

  • JCH Optimize Pro, with your Download ID entered.

  • An AI Optimization license from your account on the JCH Optimize website. A license covers 1, 3 or 10 sites, depending on the plan you choose, each site identified by its domain name. A site includes the domain's subdomains, so www.example.com and staging.example.com count as one site. For more sites, change the license to a plan that covers more from your account, or buy another license.

  • An API key from a supported AI provider: currently Anthropic (Claude) or OpenAI. You create the key in your provider's own account, and your provider bills you for what the run uses. The key must be allowed to use the model the run uses with your provider; see the section called “The AI Models a Run Uses” and the section called “Your Data, Your Key and Your Costs”.

  • Recommended: a PageSpeed Insights API key of your own. It is free. Without one, runs measure your pages on JCH Optimize's shared key, whose daily limit every site shares. See Chapter 6, Getting a PageSpeed Insights API Key.

  • A site on the public internet. The run's browser and PageSpeed Insights must be able to open your pages, so local and development sites can't be enrolled.

  • Debug output turned off. A debug bar or PHP notices shown to visitors change your page on every load, so nothing a run measures could be trusted. The panel lists what is still on and doesn't let a run start until it is off:

    Joomla

    Turn off Debug System (Global Configuration > System), and set Error Reporting (Global Configuration > Server) to anything but Maximum or Development.

    WordPress

    In wp-config.php, set WP_DEBUG to false, or keep it on and set WP_DEBUG_DISPLAY to false so errors are logged, not shown.

  • Production mode. A run previews its changes on your own pages, and in Development mode JCH Optimize optimizes none of them. The panel says so and doesn't let a run start until you switch to Production mode. Switching puts your saved settings in front of your visitors, so check your site after you switch, above all if an earlier run left it in Development mode.

Tip

Optimize your images first, on the Optimize Images page. The run doesn't optimize images itself (that takes time and image credits), but once WebP, AVIF and responsive versions exist, it can switch on the features that use them.

On This Page