20. Performance
BuilderOS optimizes what it publishes so the site loads fast and scores well on Core Web Vitals and PageSpeed Insights, with no additional optimization plugins. Everything is configured in BuilderOS → Performance. What can’t change behavior is on by default; page cache and advanced optimizations are off by default and are turned on with one click. BuilderOS also replaces WP Rocket, Perfmatters and Autoptimize (see “BuilderOS versus WP Rocket”), and never changes the package’s look: it only changes how things load, not what you see.
If you already use a cache plugin (LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, SiteGround Speed Optimizer, WP Fastest Cache…), BuilderOS coexists with it: nothing needs to be excluded and BuilderOS clears its cache when you change something.
In this chapter
- How it worksOptimization happens at two moments, and the original files are never touched: if an optimized copy is missing, the original is served.
- OptionsOn saving, the sections cache is invalidated and the page caches are cleared. If you change an option that affects generated files (minify…
- BuilderOS versus WP RocketKey: ✅ complete · 🟡 partial or done differently · ❌ not included (on purpose, with the reason). “New” = added in a later expansion.
- Why the cache doesn’t break with BuilderOSA typical problem with WP Rocket + Elementor: “every few days the site breaks in some styles or images disappear and you have to clear the cache…
- Images: optimize and see the resultSince 4.19, images have their own section: BuilderOS → Performance → Images (view view=imagenes, third item in the left list). At the top it shows…
- Page cachesBuilderOS clears the known page caches when something that affects all pages changes:
- How to prepare the package so BuilderOS optimizes it to the maximumBuilderOS optimizes the delivery of any package, but the weight and shape of the CSS are decided by whoever creates it. These rules make each…
- For the developerFiles: includes/modules/class-builder-os-performance.php and includes/modules/performance/ (optimizer, minifier, front end, inline CSS, CSS per…
- Store performance (WooCommerce)“Load WooCommerce only in the store” (Performance → Settings → Advanced → Cache and WordPress, on; option woo_assets). WooCommerce loads its CSS and…
Screen layout
BuilderOS → Performance (Builder_OS_Perf_Admin::render(), styles in admin/css/builder-os-perf.css, tabs in admin/js/builder-os-perf.js) reads top to bottom. The single bar (Builder_OS_Board::app_bar()) carries the title, the “?” and the Settings gear; Overview and Reports are in the list on the left:
- Performance overview (
render_overview()): six figures with data that already existed (“Page cache”, “Optimizations on” out of those available for the site, “Image savings”, “Database” with what can be cleaned now, “Average page weight” and “Response with cache”, with the no-cache one) and three SVG charts (“Weight per page”, “Package images: optimized and pending” and “Response: without cache and with cache”). Without data they show “—” and a hint, such as “press “Measure all” in the report”; no value is invented. - Reports: “Performance report”, “Pages” and “Packages”.
- Settings (the bar’s gear,
?view=configuracion;#bos-perf-settings) with six sections in the list on the left, with an icon (on narrow screens, “Section ⌄”; a#bos-perf-seg-<slug>link opens the section):- Cache: “Page cache” and “Cache status”.
“Clear cache” in three places. (1) Round button in BuilderOS’s top bar (
Builder_OS_Header,data-bos-purge-cache, before the search); on mobile it moves to the account menu as abos-pop__item--mobileitem. (2) WordPress bar node (Builder_OS_Perf_Admin, classbos-purge-cache; dashboard and site). (3) Avatar menu of the site pill (Builder_OS_Header). All three requiremanage_optionsand, without JavaScript, the link in (2) and (3) works throughadmin-post.php?action=bos_perf_purgewith the noncebos_perf_purge.- Code: the groups “CSS and JavaScript” and “Sources”, and “Section heights (content-visibility)”.
- Database: “Database”.
- CDN: “CDN and external caches”.
- Advanced: the group “Cache and WordPress” and “Advanced optimizations”.
- How to check it: drop-down at the end, with the link to PageSpeed.
Since 4.19 the image options are in Performance → Images, with their own form (see “Images: optimize and see the result”). The Code and Advanced fields belong to the main form #bos-perf-main (form="bos-perf-main"); the cards that saved on their own (page cache, advanced optimizations, CDN and database) still save only their own. The option names in the tables below don’t change.
Customer FAQ
Do I have to install WP Rocket? No. Turn on Performance → Settings → Cache → Page cache and save. BuilderOS decides on its own how to do it on your host: on Hostinger it uses the server’s LiteSpeed cache; on others, it stores pages on disk and serves them before loading WordPress. If you already have a cache plugin, BuilderOS respects it and clears it when you change something.
Will my changes show? Yes. When you save a page, that page and the home page are cleared; when you sync, or change the design, a menu, the header or the footer, everything is cleared and refills on its own. Logged in, you always see the up-to-date version.
What about forms? They work the same from the stored page.
For the best PageSpeed score: 1) Page cache. 2) If you use Google Analytics, Tag Manager, the Meta pixel or a chat: Delay JavaScript → Analytics, pixels and chats only. 3) If you have YouTube videos: Videos with thumbnail. 4) Measure in Performance report and click PageSpeed. If you replace the main photo with a JPG or PNG, turn on Generate WebP (Performance → Images): a heavy JPG as the main image can raise mobile LCP a lot.
If something stops working: click Something isn’t working: turn them off. To compare, open the page in a private window with ?bos_nooptimize=1. Emergency routes in wp-config.php: define( 'BUILDEROS_DISABLE_PAGE_CACHE', true ); and define( 'BUILDEROS_DISABLE_OPTIMIZATIONS', true );.
Cache status
The Cache status box answers “what is stored, where and for how long?”:
| What | Where and for how long |
|---|---|
| Package files and local fonts | In the browser, 1 year (immutable). Check now requests a file from the site itself and confirms the server sends the header; if not (Nginx, mod_headers off, a CDN that rewrites it), it says so. |
| Pages (HTML) | In the detected page cache: plugins (LiteSpeed Cache, WP Rocket…) and server caches recognized by their headers (x-litespeed-cache, QUIC.cloud, Hostinger’s CDN, Cloudflare, Varnish, Nginx…). With LiteSpeed Cache it shows how much each page stores. |
| BuilderOS sections | Internal cache (1 hour at most). It invalidates itself when the package, the design, the languages or the settings change. |
Below: the server, when it was last cleared and why (sync, menu, template, saved page…), the Clear now button, the explanation “Why the cache doesn’t break with BuilderOS” and the rules for Nginx.
Audit
In BuilderOS → Performance → Reports:
- Packages: CSS and JS weight (before and after optimizing), number and weight of images (and with WebP), fonts and external resources. It lists images over 300 KB or over 2560 px wide, what part of the CSS is split per section, and the same notices as the sync (CDN JS, CSS that isn’t split, images without size, priority, fonts, forced reflow). Optimize now regenerates the files of all packages and retries the fonts.
- Pages: all published pages with sections. Analyze downloads the page as a visitor and counts requests, own weight, images without dimensions or without lazy, iframes, blocking scripts and stylesheets, fonts requested from Google and external domains, and “This page’s CSS: X KB of Y KB” (the CSS of the packages the page receives versus the whole sheet). Analyze in PageSpeed opens
pagespeed.web.devwith the page’s URL.
BuilderOS’s audit is indicative. The real score comes from PageSpeed Insights with mobile data (the site must be public; locally, use Lighthouse in Chrome).
A/B tests and page cache
- Only paths with a test running have several copies:
index[…][-ab<id><letra>].htmlon disk andX-LiteSpeed-Vary: cookie=bos_ab_<id>with LiteSpeed. The original shares the usual copy (the one bots and PageSpeed see). - A person’s first visit is assigned in the drop-in (disk) or goes through PHP once (LiteSpeed). With another cache plugin, pages with a test aren’t stored (
DONOTCACHEPAGE). - The preload also warms each variant’s copy. Clearing the page deletes all its copies.
- Lighthouse of a page with a test versus the same without a test (warm cache): same FCP, LCP, TBT and score. It only adds the deferred measurement script (< 2 KB minified) and its sending during idle time.
Notices on sync
The sync report (and “Validate only”) includes notices that start with “Performance:”. They are short and say what to change in the package; they don’t block the install:
- Images over 300 KB or over 2560 px wide.
- Images without
width/height, or much larger than displayed (more than twice theirwidthattribute). - More than one image with
fetchpriority="high"on a page, orloading="lazy"on the first image of the first section. - More than 2 font families or more than 4 font files; fonts without woff2;
@font-facewithoutfont-display(if BuilderOS’s option is off). - JS loaded from external CDNs (with the advice to include it in
/js/and, if it is GSAP/ScrollTrigger, to use it only where it adds value). - CSS that can’t be split per section: many global rules or generic classes shared by nearly all sections (
.container,.title…). - CSS over 300 KB.
- JS that reads page measurements in scroll or resize events without
requestAnimationFrameorIntersectionObserver(indicative notice). - The first section of a page uses a CSS background image instead of an
<img>.
The same notices appear in Performance → Reports → Packages, along with what part of the CSS is split per section.
Performance of no-code sites
- Responsive backgrounds: a library background image (sections and containers) uses the ~768 px version that WordPress generates on mobile (≤ 767 px), unless the client picked a different image for mobile or tablet. Requires “Responsive sizes for library images”.
- Hero background preload by size: two
<link rel="preload" as="image">tags withmedia(the mobile version and the desktop one), using the same media query as the CSS: the browser downloads only the one it will use. - Deferred backgrounds: with “Lazy loading”, CSS background images below the “Sections visible on load” are not downloaded until you get close to them (600 px), like images with
loading="lazy". Before, the browser downloaded every background on the page and they competed with the main image. An inline script marks<html>before painting and another one, in the footer, usesIntersectionObserver. Without JavaScript, backgrounds look as they always did. - Builder CSS per page: with “CSS per section” and “Inline critical CSS”, the embedded builder CSS keeps only the rules for the widgets the page can render (content, builder header and footer, global items and published popups, and the HTML already rendered). A rule is removed only if all its selectors require a
bos-w-<widget>class (or its__parteor--variante) of a registered widget that is not present.- Besides the
bos-w-<widget>classes, the own prefixes of some widgets are known (bos-card→ Image card and Content carousel;bos-w-slides→ carousels and List;bos-w-team,bos-w-ring,bos-w-app,bos-w-circle…). Filterbuilder_os_layout_widget_classes([ 'prefijo' => [ 'widget', … ] ]) for your own widgets. - When in doubt, the rule stays: classes added by JavaScript, rules with a global selector, or a widget the page can render.
- Besides the
- The popups stylesheet (7 KB) is embedded with “Inline critical CSS” (before, it blocked painting).
- With “Remove theme styles”, the theme’s global styles (
global-styles) no longer come back as a dependency of the BuilderOS stylesheets. - “Minify JS” also applies to BuilderOS’s own JS (
public/js, except the runtime, which is inline): a minified, immutable copy inuploads/builder-os/min/with the original’s hash in the name. - Pricing table: features that are not included are shown at 72 % and struck through (at 55 % they did not reach AA contrast).