Skip to content
Situnio

Performance & SEO

Optimise page code

Page code is slimmed down as it leaves for the visitor, without changing your files. Turning optimisation off gives you back the exact same site.

Part of the Performance & SEO pack.

On this page

Turn optimisation on#

  1. Open Performance, then Details on the site you want.
  2. Under Code optimization, click Turn on optimization.

The home page is checked right after: if it no longer responds, optimisation turns itself off again.

The options#

Recommended settings gathers the safe options, already ticked:

OptionEffect
Minify HTMLRemoves comments and needless spaces.
Load images on demandOff-screen images wait until they’re seen. The first two are protected.
Inline small CSS filesFewer files blocking display.
Remove unused Gutenberg CSSOnly on pages with no blocks at all.
Show text without waiting for fontsAdds font-display: swap.
Non-blocking Google FontsThe font arrives without blocking display.
Preconnect and preloadAnticipates important resources.
Browser cacheVisitors keep CSS, JavaScript, images and fonts for a year (Apache or LiteSpeed).
Disable WordPress emojisRemoves the detection script.
Elementor optimizations, Optimize ComplianzSettings specific to these plugins.

Check on the site after turning on gathers the riskier options:

OptionRisk
Defer JavaScriptOften a big gain, to check on the site. jQuery, Elementor, WooCommerce, payment and consent are never deferred.
Remove jQuery MigrateMay break an old theme or plugin.
Disable WordPress embedsLinks to other WordPress sites no longer show as cards.

What is never touched#

Logged-in visitors, the WooCommerce cart, checkout and account, previews, 404 errors and feeds. The slightest error leaves the page intact.

Exclude a page or a script#

Under Exclusions:

  • Pages not to optimize: one address per line, from the start of the path. * replaces any sequence.
  • Scripts not to defer and Stylesheets not to inline: one piece of address per line.

Several sites#

Settings are specific to each site. Once a site is right, Copy these settings to all my other sites applies them elsewhere, without turning optimisation on where it’s off.

To turn optimisation, the static cache or WebP images on or off on several sites at once:

  1. On the Performance page, tick the sites in the table.
  2. Choose the Action and the Affected sites: The checked sites or all the sites with a tag.
  3. Click Apply, then confirm.

Sites are handled one after the other, with the same checks as from their own page. The first ones are processed straight away, the rest in the background: the table updates by itself. A refused site, for example because a competing plugin runs on it, keeps the reason on its row without holding up the others. A site that doesn’t respond is retried several times.

If something’s wrong#

Turn off optimization gives you back the exact same site. In an emergency, define('SITUNIO_CONNECTOR_NO_PERFORMANCE', true); in wp-config.php turns everything off.

Still have a question? Write to us.