Optimize Settings

  • performance
  • settings

Updated

Optimize Settings is where you see what Dirigible Optimize does and turn any part of it off. Each card lists what Optimize does, one row per feature: a green check while it's on, a red cross and an Off tag while it's off, and a grey dash with Not running when it's on but can't work on this site (for example, PageSpeed tests without a license). Rows with Always on on the right are things Optimize always does, with nothing to switch. A row you can switch has a Turn off or Turn back on button; while a feature is off, its row says what changes. Every control sits on the right of its row. Under the page title, Changed on this site lists every row that's off, each linking to its row, and the section list marks those cards with a dot. Each card's How it works link opens its part of this guide. The Revisions card has its own Save button.

Open the page

  1. In the WordPress admin menu, click Optimize, in the Admin group. You need an Administrator account. (It used to be under Dirigible → Optimize Settings; old links still work.)
  2. Click a row's button. It saves straight away, and a message in the bottom corner confirms it, such as "Off: No RSS feeds." When the change shows on your pages, Optimize also clears the host's cached copies within a minute (on Rocket.net and with page-cache plugins such as LiteSpeed Cache), and the message says so. Several changes in a row clear the cache once, then once more a minute later. With a Dirigible theme older than that, the message asks you to purge the site cache instead. If a change can't be saved, the row goes back to how it was and the message says why.

Images

The card lists what Optimize does to uploads: Image resizing (longer than 3,000 pixels), PNG and GIF to JPG, Compression (and removing hidden camera and GPS details), Upload size (the largest file the Media Library accepts, 32 MB unless you pick another size from 2 to 256 MB, or less when the server allows less), WebP copies, PDF compression where the server supports it, and Missing alt text filled. Below the list, a line totals what compression has saved. Details: Images and PDFs.

  • Turn off on PNG and GIF to JPG stops the JPG conversion.
  • Turn off on WebP copies puts the original JPGs and PNGs back on pages. While it's off, Delete WebP copies removes the copies in the background. See Pages get WebP copies.
  • Largest upload saves as soon as you pick a size.
  • Older images: Compress older images compresses the images already in the Media Library, in the background, with a progress bar. See Compress older images.
  • While another image optimization plugin is active, the card says so instead, and Optimize leaves uploads to it. The PNG and alt text rows stay.

Image Alt Text

Only with a Dirigible theme that fills alt text from the media library (see Smarter Media Library). Images on your pages that have no alt text show the one from the media library, and a linked image with none gets a name for screen readers from where it links.

  • Turn off on Missing alt text filled turns the fill off for the whole site, for example to rule it out when an image shows the wrong description. Images in page content then have only the alt text saved in the page (a few blocks, such as hero backgrounds and video covers, still read the library). Images without it lose their alt text again, and accessibility checks and ADA audits flag them, so turn it back on once you're done. With an older Dirigible theme (5.31.505 or before), core Image blocks and Instagram feed tiles keep showing the media library's alt text while it's off.

Measuring

Dirigible Analytics

On by default. Visitors, page views and sources are counted on the site itself, with no third-party service. The numbers appear under Analytics in the admin menu and in a panel on the Dashboard. Details: Dirigible Analytics.

  • Turn off takes the script off the pages and stops counting. Numbers already counted are kept.
  • If the row has no button, the site's wp-config.php turns analytics off (DIRIGIBLE_DISABLE_ANALYTICS, usually on a staging copy).
  • Numbers kept if Optimize is deleted is on by default: deleting Optimize keeps the numbers, so reinstalling it brings them back. Turn off to have them deleted with the plugin.

A/B Tests

On by default. A/B testing lets people test versions of a page from the page editor. Turn off pauses every test: visitors see each page's original, and tests and their results are kept and come back when you turn it back on. Details: A/B tests.

Daily PageSpeed Score

Tested every day: Google PageSpeed Insights tests the home page once a day, and the card shows the score, three speed figures and a 90-day chart, which clients also see on their Dashboard. Click Test now, beside Turn off, to run a test straight away: the card shows Testing… and then the new score, without reloading the page. Turn off stops the tests and hides the chart on the Dashboard. Details: Daily PageSpeed score.

Faster Pages

How Optimize loads YouTube videos, jQuery and the shop cart's styles on the public site.

YouTube Videos

YouTube click to load: Optimize shows each YouTube video as its thumbnail with a play button, and loads YouTube's player only when a visitor presses play. Details: Click-to-Load YouTube Videos.

  • Turn off turns click-to-load off for the whole site: every video, including videos on events, loads YouTube's full player as the page opens. Use it to rule out click-to-load when a video misbehaves, then turn it back on.
  • To turn click-to-load off for one block only, use the no-facade class described on its page.

jQuery

Many plugins use jQuery, a script library. On the public site (never in the WordPress admin):

  • No jQuery Migrate: pages skip jQuery Migrate, a compatibility script for plugins written for much older versions of jQuery. This row has no button.
  • jQuery deferred: jQuery loads after the page has been read, so it doesn't hold up the first view. It only does this when every script on the page that uses jQuery can wait too; otherwise it loads as before. Optimize knows that Gravity Forms' scripts can wait with it, and so can a set of other plugins' scripts that would otherwise hold jQuery at the top: WordPress's date picker, WooCommerce Product Add-ons, Metorik, Back In Stock Notifier, Pay What You Want, WooCommerce Tax Exempt, Event Tickets Plus, The Events Calendar's views, Timed Content, Bloom and Smash Balloon Instagram Feed. On Cart, Checkout and My Account those other plugins' scripts load as their plugins ship them, and with Authorize.Net CIM active jQuery always loads at the top. WooPay's express checkout script (WooPayments) needs jQuery without saying so; Optimize loads it after jQuery. Turn off loads it at the top of every page, as WordPress ships it, if a plugin stops working.
  • These used to be the Remove jQuery Migrate and jQuery Defer settings under Customize → Scripts & Embeds → Performance. Each site kept what it had chosen there.
  • Deactivating Optimize turns both off: jQuery loads as WordPress ships it, with jQuery Migrate, at the top of every page.

Shop Cart

On WooCommerce sites only. Cart styles after the page: when the header shows the cart, the styles for its panel (the drawer that slides out when someone clicks the cart) load a few seconds after the page has loaded, or as soon as a visitor points at, taps or tabs to the cart, instead of with every page. The cart button looks the same, and a panel opened before its styles arrive stays blank until they do. Cart, Checkout and My Account, and pages with another WooCommerce block, are left as WooCommerce ships them. Details: Faster pages with the header cart.

  • Turn off loads them at the top of every page, as WooCommerce ships them. Use it if the cart button or its panel looks wrong.
  • If the header shows no cart (neither in the header nor in the utility bar), the row says there's nothing to change.
  • If a WooCommerce update changed the panel's styles in a way Optimize wasn't built for, the row says it's not in effect: the styles load as WooCommerce ships them until Optimize is updated. It also says when the site's WordPress, WooCommerce or theme is too old for it.

Site Search

Only with a Dirigible theme that has Results As You Type. Results as you type: the search boxes in the header, mobile menu and footer list matching pages and posts under the box as a visitor types, with a link to all results. Each pause in typing sends one small search request to the site, which isn't cached.

  • Turn off turns results as you type off for the whole site. The search boxes then work as they did before: nothing loads when a visitor clicks into one, no requests go out while they type, and pressing Enter opens the search results page. Use it to rule the list out when search misbehaves, or to save the site work while it's under heavy load, then turn it back on.

Gravity Forms

Only with Gravity Forms and the Dirigible theme. Each row is one of the theme's Gravity Forms extras. All are on by default; turn one off for the whole site to rule it out when a form misbehaves, then turn it back on. Form styling and error messages aren't affected. With an older theme only the first row shows, and a note asks you to update the theme for the rest.

Row What happens while it's off
Extra spam checks The copied-submission check, the link-in-a-name check and Block Tor submissions stop. Gravity Forms' honeypot and speed check still run, but spam those checks stopped gets through. Tor blocking comes back once the exit list is fetched again, a minute or so after the next visit.
Campaign fields Campaign fields (utm_source, gclid and the rest) and fields filled from the page address are left to Gravity Forms, which fills them from the link the page was built for. A visitor's name or email from a link can then end up in the cached page and in the address the form posts to, and the 90-day first touch isn't used.
First-touch cookie The browser still remembers the first campaign, but Safari and iPhones forget it after 7 days instead of 90.
Visitor merge tags Visible fields and {referer} and {embed_url} defaults are filled when the page is built again, so a cached page can show every visitor the first visitor's IP address, browser or referrer. Hidden {ip}, {user_agent} and date fields still get the submitter's own.
Links for large uploads Large files are attached again instead of linked. Most mail services refuse an email over 25 MB, and a very large file can make the submission fail with an error.

Unused WordPress Features

WordPress features most Dirigible sites don't use, each switched off. Turn off on a row puts that WordPress feature back: the row's title changes to say so, with a grey WordPress default tag.

Row While it's on (Optimize's default) Turn it off for
English only The site and the admin run in English, whatever Settings → General → Site Language says, and WordPress loads no translation files, which saves work on every page. A site in another language (the row then reads Site Language)
No RSS feeds Feed addresses such as /feed/ and /comments/feed/ show "Feeds are disabled on this site," and pages carry no feed links. RSS-to-email newsletters, podcasts or feed readers
No pingbacks or trackbacks Publishing doesn't visit every site you linked to, check media links or notify Ping-o-Matic, and other sites can't send pingbacks or trackbacks into your comments. Sites that want them
Theme patterns only The Patterns tab shows only the theme's and child theme's patterns. The editor skips about 300 KB of downloads from WordPress.org. WordPress.org patterns in the inserter
No Block Directory A block search with no results doesn't suggest plugins to install, and the editor loads 130 KB less JavaScript. Offering blocks to install from the inserter
Editing checks once a minute Post lists and classic edit screens check once a minute, like the block editor. A "someone else is editing" notice can take up to a minute to appear. Post locks still work. Checks every 10 seconds

Revisions

The card lists the limit in force, such as Up to 10 revisions per post, and where it's set. Each post keeps its newest 10 revisions by default, and WordPress deletes older ones when the post is saved. Pick a limit from the dropdown on the right of the row, from Default (10) through 100 per post to Every revision or Off; it saves straight away. Trim existing revisions now trims every post to the limit in the background, drafts, private and scheduled posts included. Autosaves are kept, and so are the revisions of any page that Restore block settings from revisions still lists for review. Only Administrators can lower the limit or trim. Details: Revisions.

What isn't on this page

Some trims have no button, such as turning off emoji scripts and XML-RPC. See What Optimize turns off. To undo those, deactivate the plugin.

Built by Dirigible Studio. Get in touch