Chapter 7. Tutorial: Optimize Your Site Step by Step

Abstract

A guided walk through the whole optimization of a site, in the order that works best: prepare, configure the fold, optimize images, optimize CSS and JavaScript, add the image and CSS features, try the advanced features, and finish with page caching. Each step explains what you are doing, why, how to check the result, and how to fix what breaks.

How to Use This Tutorial

Work through the steps in order. Each step builds on the previous one: for example, lazy loading needs to know where the fold is, which you set in Step 1. If you only have half an hour, finish a step rather than starting several. The AI-assisted optimization run follows exactly the same steps, so this tutorial is also the best explanation of what a run did.

Every step follows the same rhythm:

Procedure 7.1. The check, fix, continue rhythm
  1. Change a small group of settings, as the step describes, and save.

  2. Clear the cache with the Clean Cache icon in the dashboard's Utility Tasks, and any server or CDN cache you use. While page caching is off (until Step 7), JCH Optimize's own cache rebuilds automatically, so this is mainly for other caches.

  3. Check your pages in a private browser window, using the section called “What to Check After Each Change”.

  4. If something broke, fix it before moving on. Each step tells you how. If you can't fix it, switch that setting off again; the rest of the step still helps.

  5. Measure with PageSpeed Insights and note the result next to your starting point.

What to Check After Each Change

Keep this checklist next to you. Check your home page and two or three other typical pages, at desktop size and at phone size (see the section called “Your Browser's Developer Tools”):

  • The page looks the same as before: fonts, colors, spacing, images, icons.

  • The page doesn't jump around while it loads.

  • The main menu opens, including drop-down and mobile menus.

  • Sliders, tabs, accordions and pop-ups work.

  • Forms (contact, search, login, newsletter) can be filled in and submitted.

  • Anything else that matters to your site works: the shopping cart, a booking calendar, an embedded map or video.

  • The browser console shows no new red errors.