Skip to main content

YOOspeed Documentation

Optimize YOOtheme Pro.

Overview

YOOspeed makes YOOtheme Pro sites on WordPress load faster. It rewrites each page as it is served, so the page loads only the UIkit parts and icons it uses. At higher levels, it also stops the scripts and stylesheet from blocking the first paint, without the page jumping when UIkit starts.

It is built only for YOOtheme Pro and UIkit. Unlike a general optimisation plugin, it knows what a slider, a sticky navbar or a viewport-height section needs before UIkit runs. This lets it remove what a page does not use without breaking what it does.

You choose one of three levels, Lite, Standard and Performance, at Settings > YOOspeed. Each level includes everything in the one before it. Test mode lets you try any level as an administrator while visitors keep the untouched site.

YOOspeed runs entirely on your server. There is no cloud service or account to connect, and your pages are never sent anywhere.

Requirements

WordPress 6+
PHP 8.0+
YOOtheme Pro 5.0+
Plugin dependencies None

What YOOspeed leaves alone

YOOspeed changes how UIkit, the theme stylesheet, the first image and fonts load. It never touches:

  • Images, other than the loading priority of the first image in the content.
  • Fonts, other than how they load.
  • Scripts served from other domains: analytics, ad pixels, chat widgets, consent tools.
  • The theme’s own files. YOOspeed stores the files it builds in its own folder, uploads/yoospeed.
  • Anything other plugins print that it does not recognise.

Search results, 404 pages and the YOOtheme customizer preview are served untouched.

What leaves your server

  • Your pages never do. They are processed on your server.
  • The daily license check sends the key, the site’s home URL and the product name to yoofoundry.com.
  • The update check sends the product, the installed version and the PHP and WordPress versions. The key goes in a request header, not in the URL. Like every request WordPress makes, it also carries the site’s address in its user agent. Define YOOSPEED_DISABLE_UPDATE_CHECK as true in wp-config.php to stop the update check.

What to expect

These are measured results. PageSpeed scores vary from run to run, and every site is different: hosting and third-party scripts set the ceiling.

  • yoofoundry.com on PageSpeed Insights went from 70 to 75 on mobile before YOOspeed to 96 on mobile and 99 on desktop with it (September 2026).
  • A large marketing site with heavy third-party tags (ad pixels, a consent manager, email marketing scripts) went from 43 to 80 on mobile at Performance. Most of what remains there is those third-party scripts, which YOOspeed does not touch.
  • A lab test on a copy of the yoofoundry.com homepage (Lighthouse, mobile) scored 87 with YOOspeed off, 93 at Lite, 95 at Standard and 95 at Performance. Desktop scored 99 to 100 at every level.
  • 42 YOOtheme starter layouts were tested at every level: no script errors, and every layout settled to the same result as with YOOspeed off.

Setup

Installing

  1. Download the plugin zip from your YOOfoundry account.
  2. In wp-admin go to Plugins > Add New > Upload Plugin, choose the zip, install and activate.
  3. Go to Settings > YOOspeed and paste your license key into the License key card at the foot of the page to receive automatic updates.

YOOspeed starts switched off, with no level lit and Test mode on. Activating it changes nothing for visitors, and the first level you switch on reaches administrators only. Follow “Testing a site, step by step”.

Entering your license key

The License key card is at the foot of Settings > YOOspeed. Paste the key from your yoofoundry.com account and press Save key (Enter works too). It looks like yf_a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6.

  • Check again checks the key with yoofoundry.com again.
  • Your account opens yoofoundry.com/account/.
  • Saving an empty field removes the key.

The line under the field shows the key’s status:

Status line What it means
No key yet Nothing is saved. Paste the key from your yoofoundry.com account.
License active, renews … The key is valid, and updates and support are enabled. The line ends with the renewal date.
The server’s reason yoofoundry.com refused the key and says why, for example that it has expired or does not cover YOOspeed.
License active, renews …, as of the last successful check The key was valid at the previous check, but the latest check could not reach the server. It is tried again daily, or use Check again.
Could not reach yoofoundry.com A newly saved key could not be checked yet. Use Check again in a moment.
Not checked yet The key is saved but has not been checked. Use Check again.

The key is re-checked daily. With no key saved, the Plugins screen shows one notice asking for it.

Two shortcuts:

  • A key you already use is picked up automatically. If YOOaccess, YOOcalendar or YOOcast on the same site already has a key saved, YOOspeed uses it, and the field says it is using the key saved in another YOOfoundry plugin. There is nothing to paste.
  • Agencies can license a site without opening its settings. Define the key in the site’s wp-config.php and every YOOfoundry plugin on that site licenses itself. Put the same line in each client site’s wp-config.php. The card then says the key is set in wp-config.php.
define('YOOFOUNDRY_LICENSE_KEY', 'yf_your_key_here');

The key turns on automatic updates, through the normal WordPress update screen, and support. YOOspeed optimises pages exactly the same with or without one. Getting Started explains keys, renewals and updates for every YOOfoundry plugin.

The settings page

Where: wp-admin > Settings > YOOspeed. It uses the same cards and switches as the other YOOfoundry plugins, and every switch saves as soon as you change it.

From top to bottom:

  • Test mode banner: shown while Test mode is on and a level is switched on.
  • Level cards: Lite, Standard and Performance, each with a switch. Switch one on to use that level. Switch the lit card off to turn YOOspeed off.
  • Preview: under the cards, links that open your home page at Off, Lite, Standard or Performance for you only, and Test on PageSpeed Insights. See “Previewing a level”.
  • Fine-tuning: six switches. See “Fine-tuning switches”.
  • Leave these pages alone: paths YOOspeed serves untouched. See “Leave these pages alone”.
  • Troubleshooting: Clear YOOspeed’s cache. See “YOOspeed’s cache”.
  • License key: the card for your YOOfoundry key. See “Entering your license key”.

Features

YOOspeed works at one of three levels, Lite, Standard and Performance. Each level includes everything in the one before it. Start at Lite, with Test mode on.

Lite

The safe first step, and fine on almost any site. The scripts still run before the page renders, so nothing about how the page appears changes. What changes is how much it loads:

  • Only the UIkit it uses. UIkit’s core plus only the component files the page needs (slider, slideshow, lightbox, parallax, countdown, filter and so on), bundled with the theme script.
  • Only the icons it shows. A page with four icons carries four icons, not the whole set. The icon sets Essentials for YOOtheme Pro adds (Phosphor, Bootstrap, Font Awesome and your own) keep working at every level; this was checked on two sites that use them.
  • No block editor styles where there are no blocks. Pages that use no blocks drop the block editor stylesheets.
  • No emoji script.
  • First image first. The first image in the content loads straight away at high priority. At Lite and Standard, when it sits in the first section, it and the first background image are requested before anything else.
  • Text before fonts. Text shows at once in a fallback font while the theme fonts load (font-display: swap).

Everything in Lite, and the scripts stop blocking the first paint.

  • UIkit starts once the page has parsed. Other local scripts that use UIkit, and inline scripts after them, are deferred with it and keep their order.
  • The layout is sized before the first paint. A small script does the sizing UIkit and the theme would otherwise do afterwards: viewport-height sections, the spacer under an overlay header, and a sticky navbar’s starting state.
  • UIkit markup is styled before UIkit runs. A copy of the theme stylesheet with attribute selectors covers it, and a small inline stylesheet holds grids, icons, slideshows, accordions, switchers and scroll animations steady.

No level includes font preloading. On the measured page it delayed the hero image more than it helped, so it is only available through the yoospeed_features filter (font_preload).

Limits: a script that needs UIkit but never mentions it by name is not deferred with it. Elements sized only by script, such as height-match cards and masonry grids, still settle once UIkit runs. “Known limits” has the rest.

Performance

Everything in Standard, and the theme stylesheet stops blocking the first paint too.

  • Each page carries only the theme CSS it uses, written into the page itself, so the theme stylesheet no longer holds up the first paint. Other plugins’ stylesheets are left as they are.
  • The full stylesheet follows on the first scroll, tap or key press, so anything added to the page later is styled as the theme intends. The Full stylesheet on interaction switch controls this. With it off, each page keeps only the CSS it carries.

Limit: content that arrives after load and uses classes the page did not already contain is unstyled until the first interaction brings the full stylesheet in, and stays unstyled if Full stylesheet on interaction is off.

Choosing a level

Level Use it on
Lite Anything.
Standard Brochure and marketing sites, once you have clicked through them with Test mode on.
Performance Landing pages, and sites without content that loads later.

On a shop, add /cart and /checkout to Leave these pages alone at any level. If another optimisation plugin’s script or CSS options must stay on, use Lite (see “Other optimisation plugins”).

Test mode

With Test mode on, only administrators get the optimised pages. Visitors keep the untouched site until you turn it off. Test mode is on by default, and a banner at the top of the page says so while a level is switched on.

Two ways to see a level for yourself, whether Test mode is on or off:

  • The Preview links under the level cards open the home page at Off, Lite, Standard or Performance, for you only.
  • On any page, add ?yoospeed=off, ?yoospeed=lite, ?yoospeed=standard or ?yoospeed=performance to the address while logged in as an administrator.

Testing a site, step by step

  1. Install and activate YOOspeed. At Settings > YOOspeed, check that Test mode is on.
  2. Switch on Lite.
  3. Use the Preview links to open the home page at Off and at Lite. For other pages, add ?yoospeed=off or ?yoospeed=lite to the address.
  4. Click through on a phone and on a desktop. On the phone, log in as an administrator too, or you will see the untouched site. Check menus and dropdowns, the mobile menu, sliders and slideshows, lightbox galleries, forms, filter grids and the sticky header.
  5. Open the browser console on those pages and check for errors.
  6. If everything works, switch on Standard and repeat steps 3 to 5. Do the same for Performance if it suits the site (see “Choosing a level”).
  7. Turn Test mode off. Visitors now get the level you chose, and YOOspeed empties the common page caches for you.
  8. Use Test on PageSpeed Insights, beside the Preview links, to test the home page.

PageSpeed Insights visits as a visitor, so while Test mode is on it measures the untouched site. Run it after step 7.

Settings

Fine-tuning switches

Each switch saves as soon as you change it. All six are on by default.

Switch What it does Default
Test mode Only administrators get the optimised pages. Visitors keep the untouched site until you turn it off. on
Text before fonts Shows text at once in a fallback font while the theme fonts load (font-display: swap). on
First image first Loads the first image in the content straight away at high priority. At Lite and Standard, when it sits in the first section, it and the first background image are requested before anything else. on
Block editor styles Removes the block editor stylesheets on pages that use no blocks. on
Emoji script Removes the WordPress emoji script. on
Full stylesheet on interaction Performance only. Loads the full theme stylesheet on the first scroll, tap or key press. Off, each page keeps only the CSS it carries. on

Leave these pages alone

Where: Settings > YOOspeed > Leave these pages alone. Press Save after editing the list.

Pages on this list are served exactly as the theme would serve them, at every level. Enter one path per line. A path covers itself and everything below it. End a path with * to cover every path that starts with it. On a site installed in a subdirectory, such as example.com/shop/, a path works with or without the subdirectory: /checkout and /shop/checkout both cover example.com/shop/checkout.

/cart
/checkout
/my-account
/landing*
Line Covers Does not cover
/checkout /checkout, /checkout/order-received/123 /checkout-help
/my-account /my-account, /my-account/orders /my-accounts
/landing* /landing, /landing-spring, /landings/offer /offers/landing

Use it for a page that misbehaves at a level you otherwise want, and on shops for /cart and /checkout.

Previewing a level

The line under the level cards reads Preview, for you only, followed by Off, Lite, Standard and Performance. Each opens your home page at that level, for you alone; visitors are not affected. To preview another page, add ?yoospeed=off, lite, standard or performance to its address while logged in as an administrator.

Test on PageSpeed Insights, at the end of that line, opens PageSpeed Insights for the home page. It tests what visitors get, so while Test mode is on it measures the untouched site.

The License key card sits at the foot of the page. See “Entering your license key”.

Page caches

When a change alters what visitors get, for example choosing a level or turning Test mode off, YOOspeed empties the common page caches automatically:

  • WP Rocket
  • W3 Total Cache
  • WP Super Cache
  • WP Fastest Cache
  • SiteGround Optimizer
  • LiteSpeed Cache
  • Cache Enabler
  • WP-Optimize
  • Hummingbird
  • Breeze
  • Super Page Cache
  • WP Engine’s page cache

Empty any other cache, such as another host’s cache or Cloudflare’s edge cache, by hand after the change.

CDNs and Cloudflare

  • Cloudflare’s edge cache is not emptied by YOOspeed. Purge it by hand after changing the level or turning Test mode off.
  • Cloudflare Rocket Loader must be off. It rewrites the same scripts YOOspeed orders.
  • A CDN serving your own files from another host name: YOOspeed leaves scripts from other domains alone, so tell it that host is yours with the yoospeed_hosts filter.

Content Security Policy

At Standard and Performance, the inline scripts after UIkit are moved into deferred data: URLs so they keep their order.

  • A policy WordPress can see, such as one in a meta tag, that leaves data: out of its script sources keeps UIkit blocking on that page. The comment at the end of the page source says why.
  • A policy added by your host or a CDN, which WordPress cannot see, is handled in the browser: the refused script’s code runs inline at the same point, in the same order, with one console message per script.

Other optimisation plugins

The JavaScript defer and delay options and the CSS options in other optimisation plugins overlap with Standard and Performance. That includes WP Rocket, Perfmatters, Autoptimize and LiteSpeed Cache. Turn those options off, or use Lite.

Their page caching can stay on. YOOspeed empties the caches listed above for you.

YOOspeed’s cache

YOOspeed stores trimmed copies of the theme scripts and stylesheet in its cache at uploads/yoospeed. Each file is named after a hash of what went into it and rebuilt on demand. The cache holds at most 1,000 files. Old files are kept so cached pages keep working after an update. A theme update simply produces new ones.

Clear YOOspeed’s cache, under Troubleshooting, deletes them all and empties the common page caches. They are built again as pages are requested. If a page looks wrong, clearing the cache rules out a stale copy.

The comment at the end of the page source

Every page YOOspeed changes ends with an HTML comment describing what it did and how long it took. Only logged-in administrators get it; visitors never see it.

To read it, log in as an administrator, open the page, view the page source and scroll to the end. The first line names YOOspeed and its version, then the level and the time taken, for example level standard, 12 ms. Each line after that covers one part of the page:

  • scripts lists the UIkit parts the page loaded and the icons it used, and says whether UIkit was deferred and how many other scripts were deferred with it.
  • styles says what happened to the theme stylesheet on that page.
  • layout says whether the layout was sized before the first paint.
  • images says how the first image was loaded.

When UIkit has to keep blocking on a page, for example because of document.write or a Content Security Policy, the scripts line says why.

Known limits

  • Scripts that need UIkit without naming it. A script that needs UIkit at load but never mentions the word, for example because it is bundled under another name, is not deferred with it at Standard and above. The yoospeed_defer_script and yoospeed_defer_inline filters can force or prevent deferring.
  • document.write and Content Security Policy. A page with an inline script after UIkit that uses document.write keeps UIkit blocking on that page, as does a policy WordPress can see that leaves data: out of its script sources. The comment at the end of the page source says why. A policy added by your host or a CDN is handled in the browser (see “Content Security Policy”).
  • Elements sized only by script. Height-match cards and masonry grids still settle once UIkit runs.
  • Late content at Performance. Content that arrives after load and uses classes the page did not contain is unstyled until the first interaction brings the full stylesheet in.
  • Other optimisation plugins. Their JavaScript defer and delay options and CSS options overlap with Standard and Performance, and Cloudflare Rocket Loader must be off. Turn those off, or use Lite.
  • Shops. Add /cart and /checkout to Leave these pages alone.

Troubleshooting

If something looks or behaves wrong:

  1. Compare with ?yoospeed=off. If the problem is still there with YOOspeed off, YOOspeed is not the cause.
  2. Read the comment at the end of the page source. It says what YOOspeed did on that page.
  3. Drop a level, or add the page to Leave these pages alone.
  4. Clear YOOspeed’s cache (Troubleshooting), then load the page again.
  5. Empty any cache YOOspeed cannot reach, such as another host’s cache or Cloudflare’s edge cache.
  6. Deactivate the plugin. The untouched site comes back at once, and the common page caches are emptied.

Developer hooks

Hook Type Use
yoospeed_features filter Change what a level does. Receives the level’s switches as an array and the level’s name; return the array. For example, set font_preload to true to turn on font preloading.
yoospeed_defer_script filter Whether a local script after UIkit is deferred at Standard and above. Receives YOOspeed’s decision (true when the file mentions UIkit), the file’s path and the tag’s attributes. Return true to defer a script that uses UIkit under another name, or false to keep one back.
yoospeed_defer_inline filter The same for an inline script after UIkit. Receives YOOspeed’s decision (true from the first inline script that mentions UIkit onwards), the script’s text and the tag’s attributes. Once one inline script is deferred, every later one is too unless this returns false for it.
yoospeed_remove_block_styles filter Asked only on a page with no sign of blocks. Receives true and the page’s HTML; return false to keep the block editor stylesheets.
yoospeed_hosts filter Receives the host names YOOspeed treats as the site’s own (from the home, site and content URLs); add a CDN host that serves the site’s files.
yoospeed_inline_css_max filter The most CSS, in bytes, written into the page at Performance. The default is 204800 (200 KB); a page whose CSS is larger links it instead.
yoospeed_font_preload_max filter The most font files preloaded when font preloading is on. The default is 4.
yoospeed_eligible filter Receives true; return false to leave the current request untouched.
yoospeed_output filter Receives the final HTML and what YOOspeed did on the page, as an array; return the HTML.
yoospeed_recommended_level filter Receives standard; return the level the settings page marks as Recommended.
yoospeed_cleared action Runs after Clear cache has deleted the files and emptied the common page caches. Hook it to empty a cache YOOspeed does not know.
yoospeed_settings_changed action Runs after a setting is saved on the settings page. Receives the saved settings as an array.
YOOFOUNDRY_LICENSE_KEY constant The YOOfoundry key for every YOOfoundry plugin on the site, set in wp-config.php.
YOOSPEED_DISABLE_UPDATE_CHECK constant Set to true in wp-config.php to stop the update check.

For example, to defer a slider script that needs UIkit but calls it by another name, add this to your child theme’s functions.php:

add_filter('yoospeed_defer_script', function ($defer, $path) {
    return basename($path) === 'my-slider.js' ? true : $defer;
}, 10, 2);

Uninstalling

Deactivating YOOspeed restores the untouched site at once and empties the common page caches. If you use a cache YOOspeed does not empty for you, such as Cloudflare’s, empty it afterwards.

Uninstalling empties the common page caches, then removes the generated files, the settings, the license key and its daily check. Empty any other cache straight afterwards: pages it holds point at the generated files. On a multisite network, it does so on every site. Keys saved in other YOOfoundry plugins stay where they are.

Support

Email [email protected]. Include the page address, the level, your YOOtheme Pro version (Appearance > Themes), and the comment from the end of that page’s source.

FAQ

Do I need a license key for YOOspeed to work?

No. The key turns on automatic updates and support. YOOspeed optimises pages exactly the same without it.

What happens if my YOOfoundry license lapses?

YOOspeed keeps working. Updates and support stop until you renew.

Do I need a separate license per site?

No. A YOOspeed license and the YOOfoundry bundle both cover unlimited sites, client sites included. Any bundle key covers YOOspeed.

Does YOOspeed send my pages anywhere?

No. Pages are processed on your server. Only the daily license check and the update check reach yoofoundry.com (see “What leaves your server”).

Will it touch my analytics, ad pixels or consent tool?

No. Scripts served from other domains are left alone. On a site with heavy third-party tags, those scripts are usually most of what is left to fix.

Does it optimise images?

No. It only makes the first image in the content load first. Use an image plugin alongside it.

Do the Essentials for YOOtheme Pro icon sets still work?

Yes. Phosphor, Bootstrap, Font Awesome and your own sets keep working at every level.

Which level should I use?

Lite on anything. Standard on brochure and marketing sites once you have clicked through them. Performance on landing pages and sites without content that loads later.

Can I use it with WP Rocket, Perfmatters, Autoptimize or LiteSpeed Cache?

Yes. Keep their page caching and turn off their JavaScript defer or delay options and CSS options, or use Lite.

Does it work with WooCommerce?

Yes. Add /cart and /checkout to Leave these pages alone.

My score changes every time I run PageSpeed Insights. Why?

PageSpeed scores vary from run to run. Compare several runs, and compare levels with the Preview links.

PageSpeed Insights shows no change. Why?

Test mode is probably still on, so PageSpeed Insights gets the untouched site. Turn Test mode off and empty any cache YOOspeed cannot reach.

A slider or menu misbehaves at Standard. What now?

Drop to Lite, or add that page to Leave these pages alone. Then read the comment at the end of the page source and email [email protected] with it.

Something added after load looks unstyled at Performance. Why?

It uses classes the page did not contain, so it waits for the full stylesheet, which arrives on the first scroll, tap or key press. Use Standard on that page’s site, or add the page to Leave these pages alone.

Do I need to do anything after a YOOtheme Pro update?

No. A theme update simply produces new generated files.

How do I get my untouched site back straight away?

Deactivate YOOspeed. It empties the common page caches; empty any other cache yourself.