Skip to content
Arrow keys to move, Enter to open, Esc to closeAll results
Design and Builders · Guides

Bricks Builder Performance: A Practical Checklist for Fast Pages

A practical Bricks Builder performance checklist: trim the defaults, choose a CSS loading method, tame query loops, fonts, images and scripts, then measure properly.

Written by
WPresident Editorial
Topic
Design and Builders

Someone tells you a Bricks site feels slow, and the first instinct is to open the settings and start flipping switches. That instinct is how sites end up with a broken slider, a missing icon and no evidence that anything got faster. Speed work goes wrong when it starts with changes. It goes right when it starts with a question: where does the time actually go on this page, for these visitors, on these devices?

The single most useful idea in this checklist is that a page is slow for one of four reasons, and each has a different fix. The server may take too long to produce the HTML. The HTML may ask the browser to download too much, in the form of styles, fonts, images and scripts. The browser may be unable to paint the main content quickly because something sits in its way. Or the page may paint fine but respond badly to taps and clicks because too much JavaScript is running. Bricks is built to keep the base light, and the documentation describes loading many frontend assets only on pages that need them. That gives you a good start, but what you put on a page, and what you add around it, decides the outcome.

This guide is organised as a sequence. It starts with a map of where time goes, then a measurement routine you can run before touching anything, using WP-CLI, a few lines of browser code and the standard lab and field tools. Next comes what Bricks loads by default and which settings in the Performance tab are safe to change. The middle sections go through the heaviest levers in order: CSS loading, images, fonts, query loops, third-party scripts and caching layers. After that come optimisation plugins and how they can break Bricks features, a short note on keeping the builder itself responsive, a decision rule for what to fix first, and a symptom and cause table for the problems people actually meet.

Some honest limits. This is a general guide based on the public Bricks documentation and on how WordPress and browsers work. It is not a test report, and it deliberately contains no before and after numbers, because the right numbers are the ones you measure on your own site. Bricks changes between versions, so wherever a setting name, a default or a feature is version sensitive, the text points you to the Bricks Academy for the release you run. Several steps below change global behaviour, so rehearse them on a staging copy, change one thing at a time, and keep a note of what you changed and why. A performance gain you cannot trace to a change is a gain you cannot keep.

Key points

  • Measure first: record field data, a lab run and a server profile before changing anything, then change one thing at a time.
  • Bricks loads core assets always and libraries (sliders, lightbox, maps, animations, icon fonts) only when a page needs them, so element choices affect page weight.
  • CSS loading is a real choice: inline styles are always current, while external files can be cached by the browser and a CDN but must be regenerated.
  • Image loading, font loading and the main content element usually decide how fast a page looks ready, so protect the first screen before optimising the rest.
  • Query loops cost the most when they are unbounded, nested or meta-heavy, and settings such as posts per page and cache controls change that cost.
  • Third-party scripts and aggressive optimisation plugins are the most common reasons a fast build becomes slow or broken.
  • Fix by symptom: server time, main content paint, layout shifts and interaction delay each point to different causes.

Where the time goes on a Bricks page

A page load is a chain, and the slowest link sets the pace. Before you optimise anything, picture the chain in order. The request leaves the visitor’s device, crosses the network, reaches your hosting, and PHP builds the page. That server step includes database queries, and it is where a page cache either saves everything or does nothing. The HTML that comes back is then parsed. Its size and the number of elements matter, because every element is something the browser has to style and lay out.

Next the browser discovers what else it needs: stylesheets, which block painting until they are ready, fonts, which can delay or swap text, images, which usually contain the largest piece of visible content, and scripts, which can block parsing or compete for the main thread. Finally the browser paints, and keeps running JavaScript that responds to input. Each stage has a different owner. Hosting and caching own the first stage. Your element choices and queries own the HTML. Your CSS method, fonts and images own the middle. Your scripts, including third-party tags, own the end.

Bricks sits across several of these. Its documentation says the main frontend stylesheet and main frontend script are always enqueued, while additional libraries such as sliders, lightboxes, maps, animations, icon fonts and date pickers are registered and loaded only when needed. That is a sound design, and it means that two Bricks sites with the same version can have very different page weights depending on which elements they use.

Two vocabulary points keep the rest of the guide clear. Lab data comes from a controlled run, such as a Lighthouse test in a browser or a PageSpeed Insights lab section. It is reproducible, great for debugging, and not what real visitors experience. Field data comes from real visitors, such as the Chrome User Experience Report data shown by PageSpeed Insights or the data in Search Console. It is what you are ultimately judged on, but it is slower to move and harder to attribute. You need both: field data to know whether you have a problem and which pages have it, and lab data to find out why.

The three Core Web Vitals map neatly onto the chain. Largest Contentful Paint is about how fast the main visible element appears, which depends on server time, CSS, fonts and the LCP image. Cumulative Layout Shift is about things moving after they appear, which comes from images without reserved space, late fonts and injected content. Interaction to Next Paint is about responsiveness, which comes from JavaScript. Google publishes the current thresholds for each on its web.dev site, so check them there rather than trusting a figure copied into an article.

Where time goes, from request to interaction

Server and networkHosting, PHP, database, page cache and CDN decide how soon HTML starts to arrive.
HTML outputElement count, loops and inline CSS decide how heavy the document is.
CSS and Bricks assetsLoading method, libraries pulled in by elements and custom code.
FontsFamily and weight count, hosting and loading method.
Images and videoSizes, formats, lazy loading and reserved space.
JavaScript and third partiesTags, widgets, embeds and plugin scripts that run on the main thread.
Browser paint and inputWhat the visitor sees, and how quickly the page reacts.
A layer view of the places a Bricks page can lose time, with the owner of each layer.

Measure before you change anything: a routine with WP-CLI and the browser

This routine takes about half an hour and gives you a baseline you can compare against later. Run it on the pages that matter most: the homepage, a high-traffic landing page, a template-driven page such as a blog post, and any page with a heavy query loop.

Step 1: read field data. Run each key URL through PageSpeed Insights and note the field data section, if the page has enough traffic to show one, and the Search Console Core Web Vitals report for groups of URLs. Field data tells you which metric is actually failing. If there is no field data, your lab run is all you have, so treat it as a rough guide.

Step 2: record the environment. Performance advice depends on the stack, so write down the WordPress and Bricks versions, the PHP version, the active plugins, whether a page cache and a persistent object cache are in place, and the CSS loading method set in the Bricks settings. WP-CLI makes the plugin and database part quick:

$ wp core version
$ wp plugin list --status=active --fields=name,version
$ wp theme list --status=active --fields=name,version
$ wp db size --tables --size_format=mb
$ wp db query "SELECT meta_key, COUNT(*) AS meta_rows, ROUND(SUM(LENGTH(meta_value))/1024) AS size_kb FROM $(wp db prefix)postmeta WHERE meta_key LIKE '%bricks%' GROUP BY meta_key ORDER BY size_kb DESC;"

The first three commands list versions and active plugins. wp db size shows how large each table is, which exposes a bloated options or postmeta table. The last query groups the postmeta rows whose key contains the word bricks and shows how much data each key holds, which tells you whether a few huge pages dominate. It is read-only. The $(wp db prefix) part inserts your table prefix, so it works when the prefix is not the default.

Step 3: profile the server. The WP-CLI profile package breaks a request into stages and hooks so you can see whether time is spent in core, the theme or plugins:

$ wp package install wp-cli/profile-command
$ wp profile stage --url=https://example.com/ --spotlight
$ wp profile hook --all --url=https://example.com/ --spotlight

The first line installs the package once. wp profile stage reports time per stage of loading WordPress for that URL, and the --spotlight flag hides rows with no meaningful time. The last line breaks the same request down by hook. This is a lab view of PHP time, not of what the browser sees, but it quickly shows whether a plugin or a query loop is the slow part. A WordPress plugin such as Query Monitor adds a per-request view of database queries and which code caused them.

Step 4: measure the page in the browser. Check the headers first, from a terminal, to see compression and caching:

$ curl -s -o /dev/null -w "ttfb %{time_starttransfer} total %{time_total} bytes %{size_download}" https://example.com/
$ curl -sI -H "Accept-Encoding: br, gzip" https://example.com/

The first command prints time to first byte, total time and downloaded size for one request, which is a rough server signal. The second prints response headers, where you can look for the content-encoding, cache-control and any cache status header your host or CDN adds. Then open the page in Chrome DevTools. In the Network tab, tick Disable cache, reload, and sort by size to find the heaviest files. In the console you can log the largest element and layout shifts:

new PerformanceObserver((list) => {
  const entries = list.getEntries();
  const last = entries[entries.length - 1];
  console.log('LCP candidate', Math.round(last.startTime), 'ms', last.element);
}).observe({ type: 'largest-contentful-paint', buffered: true });

let shift = 0;
new PerformanceObserver((list) => {
  for (const entry of list.getEntries()) {
    if (!entry.hadRecentInput) shift += entry.value;
  }
  console.log('Layout shift so far', shift.toFixed(3));
}).observe({ type: 'layout-shift', buffered: true });

console.log('DOM elements', document.querySelectorAll('*').length);

The first observer logs the current Largest Contentful Paint candidate and the element responsible. The second adds up layout shifts that were not caused by user input. The last line counts DOM elements, which is a fair proxy for how complex the page is. Paste these into the console right after a reload, with the page not yet scrolled.

Step 5: write it down. For each page record the metric that fails, the element or file responsible, and one hypothesis. Run Lighthouse for a lab view, but remember it uses an emulated device and network, so use it for comparison between your own runs, not as a verdict.

A measurement routine before any change

  1. Field dataPageSpeed Insights and Search Console show which metric fails.
  2. EnvironmentVersions, plugins, caches and the CSS loading method.
  3. Server profileWP-CLI profile stages and hooks, and query inspection.
  4. Headers and sizeCompression, cache headers and download size per page.
  5. Browser traceNetwork sort by size, LCP element, layout shifts, DOM count.
  6. HypothesisOne suspected cause per page, written down before changing it.
The order of checks that produces a baseline and a hypothesis for each slow page.

What Bricks loads by default

To trim a page you must know what is on it. The asset loading guide in the Bricks developer documentation describes the model. Bricks always enqueues the main frontend stylesheet through the handle bricks-frontend and the main frontend script through bricks-scripts. Libraries are registered separately and loaded only when the current page needs them. The documented list covers a masonry and metro layout library, icon font stylesheets (several families), an animation stylesheet, a tooltip stylesheet, a date picker, two slider libraries, a lightbox, a map library, a code prettifier and a select-box library.

The practical consequence is that elements are not free. A page with a nestable slider pulls in a slider library. A page that uses the lightbox link option on images pulls in the lightbox. A page that uses an icon from a font family pulls in that family’s stylesheet. A page with a map element loads the map library. None of this is a defect, it is the cost of the feature, and it is paid on the pages that use it. The way to control the cost is to be deliberate about where those elements appear, not to dequeue handles blindly. If you break a handle that an element depends on, that element stops working.

Two stylesheet variants matter. By default Bricks uses its cascade-layer frontend stylesheet. When the CSS loading method is switched to external files, it uses a lighter frontend stylesheet and loads generated CSS files for the page instead. Layered styles also mean your own un-layered CSS can override the default Bricks styles without specificity fights, so you need less override CSS. The settings also include an option to turn the cascade layer system off, which the documentation strongly discourages unless you have a specific compatibility reason.

Beyond assets, think about the markup. Under General in the Bricks settings there is an option, labelled Add element ID as needed, that tells Bricks to stop adding the element ID and class attributes to elements that have no CSS settings, which produces slightly leaner HTML. There is also an option that removes the Open Graph or SEO meta tags Bricks outputs, intended for sites where an SEO plugin does that job, which is a duplicate-output matter more than a speed one. Another, to query Bricks data in search results, extends WordPress search to the post meta tables where Bricks stores page content, and that extra searching has a cost on large sites, so enable it only if you need page text to be searchable.

Finally, when you add scripts or styles of your own, use the enqueue hook and load only on the pages that need them, rather than adding them to a global field. The asset loading guide includes an example that hooks wp_enqueue_scripts for the case where a library is not loading as needed. The same principle applies in reverse: a library that loads on every page because someone enqueued it globally is a candidate for removal.

The Performance tab, setting by setting

The Bricks settings page has a Performance tab, and it is where most people start. Treat each switch as a hypothesis, not a recommendation. Change one, clear every cache, and test the things that could break: the main navigation, any form, popups, sliders and anything that uses an embed, on desktop and on a phone, logged out. Here is what the documented options do and what to verify for each.

  • Disable emojis. Removes the WordPress emoji script and styles. Safe if your content does not rely on the browser converting text emoticons. Verify that any emoji you typed on purpose still shows.
  • Disable embed. Removes the WordPress oEmbed scripts and the ability to paste a URL into content and have it auto-embed. Safe when you do not use pasted video or social links in WordPress content. Bricks has its own Video element, which is separate.
  • Disable Google Fonts. Stops Bricks loading Google Fonts from the Google CDN. Use it when you do not use Google Fonts or when you host those fonts yourself as custom fonts. Verify every typography control, because a leftover Google font would silently fall back to a system font.
  • Disable lazy loading. Bricks applies native lazy loading to images by default, and there is a lazy load offset (documented default of three hundred pixels) controlling how early images start to load before they enter the viewport. Leave lazy loading on unless it causes a display problem, and handle the first-screen image individually instead.
  • Disable jQuery migrate. Removes the compatibility script WordPress includes for old jQuery code. The documentation says it is safe if you are not running jQuery older than one point nine, which in practice means checking third-party plugins and old snippets.
  • Cache query loops. Caches loop results in the WordPress object cache, with a key that includes the element ID, query variables and parent loop context. It helps most when query arguments are stable. Only a server-level object cache such as Redis or Memcached makes it persist across requests, and the documentation says to turn it off if you see stale results.
  • Disable class chaining. By default, an element with a global class gets a selector that chains the class with the element type class, which raises specificity. Turning chaining off yields simpler selectors. It is mainly a compatibility tool, and it can change which rule wins, so test visually.
  • Webfont loading method and Preload custom fonts. Covered in the fonts section below.
  • CSS loading method. Covered in the next section.

In the General tab there is one more performance-relevant choice: how theme styles load when several have conditions that match the current page. The default loads only the single most specific theme style, while the alternative loads and merges all that match. Keep the default unless you rely on layered theme styles, since loading fewer styles means less CSS to deliver.

Notice what this list does not contain: a button that makes the site fast. These switches remove optional work. Their effect is real but modest compared with an oversized hero image, an unbounded query loop or a chat widget that loads on every page. Do them, because they are cheap, but do not stop there.

Performance tab options and what to verify

Safe whenVerify afterwards
Disable emojisContent does not depend on emoji conversionIntentional emoji still display
Disable embedNo pasted URL embeds in WordPress contentAny embedded video or post still shows
Disable Google FontsFonts are self-hosted or system fontsEvery typography control and page
Disable jQuery migrateNo old jQuery code on the siteMenus, forms, sliders, plugin widgets
Cache query loopsQueries are stable and an object cache existsFresh content appears when expected
Disable class chainingA specificity conflict needs itWhich style rule now wins
Common switches compared on when they are safe and what to check after changing them.

CSS loading: inline styles or external files

Bricks gives you a real choice here, under the CSS loading method option in the Performance tab. The documentation describes two modes.

Inline styles is the default. Generated styles, which include page settings, template settings, element styles, global custom CSS, theme styles, colour palettes and global class CSS, are output in style tags directly in the HTML. It is always current and needs no files, but those bytes travel inside every HTML response and the browser cannot cache them separately between pages.

External files makes Bricks generate minified CSS files in a folder named bricks inside the uploads directory, and load them as stylesheets. In this mode Bricks also uses a lighter frontend stylesheet and loads the generated files for the current page. Because these are files with their own URLs, browsers and CDNs can cache them. The costs are that the uploads directory must be writable, that the files must be regenerated after you change the method (the settings page shows a Regenerate CSS files button for that), and that they are one more thing a caching layer or a deployment can get wrong.

Which is faster? The honest answer is that it depends, and you should measure both on staging. Inline styles avoid an extra request and a render-blocking file, which can help a first visit from a search result. External files cut repeated bytes and let returning visitors and CDN edges reuse the same CSS, which can help sites with many pages per session. Do not assume either. Run your measurement routine on a few representative templates with each setting and keep the one that wins for your traffic.

If you choose external files, build the routine around it:

$ wp bricks regenerate_assets
$ wp cache flush

The first command is the Bricks WP-CLI command that regenerates the CSS files, and the documentation notes it requires the external files method to be active. The second flushes the object cache. Run both as part of a deployment, then purge any page cache and CDN so visitors do not receive HTML that points at stale file versions. The documentation also warns that if the external method conflicts with your server or caching plugin and produces wrong or missing styles, you should revert to inline styles. Treat that as a supported fallback, not a failure. A related setting, Regenerate CSS files in the custom breakpoints area, rebuilds the files after you change breakpoints.

Whatever the method, the bigger lever is the volume of CSS itself. Styles stored as repeated element-level overrides produce more CSS than the same design expressed once in a global class. A thousand-line global custom CSS block loads on every page even if only one page needs it. Use the smallest custom code location that fits: element CSS for one element, page-level custom code for one page or template, and the global field only for rules that really are site-wide. The Bricks documentation lists those locations and the order of preference, and it is the cheapest CSS optimisation there is: the code you do not load costs nothing.

Inline styles versus external CSS files

Inline styles (default)External files
Where the CSS livesStyle tags inside each HTML responseGenerated files in the uploads folder
FreshnessAlways currentNeeds regeneration after changes
Browser and CDN cachingTravels with HTML, no separate cachingCacheable as separate files
Extra requestsNone for generated CSSOne or more stylesheet files
Operational loadNothing to runRegenerate on deploy, writable folder
If it misbehavesNot applicableSwitch back to inline styles
The two documented CSS loading methods compared on freshness, caching and operations.

Images and video: protect the first screen

On most pages the largest visible element is an image, so image handling usually decides Largest Contentful Paint. Bricks gives you the controls; the discipline is yours.

Loading behaviour. The Image element has a Loading setting with the options eager and lazy, and the documented default is lazy. That is right for everything below the first screen. It is wrong for the image that forms the main content of the first screen, because lazy loading tells the browser to wait. Set that single image to eager. Do not switch lazy loading off globally to fix one image.

Use an image element for the hero, not a CSS background. A background image is only discovered when the browser parses the CSS, and the native loading attribute does not apply to it. An Image element puts the image in the HTML where the browser can find it early. If the design needs a background look, layer text over a normally placed image instead.

Serve the right file. The Image element can use sources for different breakpoints, in which case Bricks outputs a picture element. Order matters because the browser uses the first matching source, and the documentation explains the arrangement: sources for breakpoints below the base from smallest to largest, then those above the base from largest to smallest, and the base last as the fallback. Use this to send a smaller crop to phones instead of a desktop image scaled down by CSS. The Bricks documentation also asks you to upload images with a minimum width, ideally large, and to regenerate thumbnails after adopting Bricks so its own image sizes exist. The settings include an option to generate Bricks custom image sizes on upload. Check the image control for the size choice, and prefer a registered size over the full original.

The result in the page is ordinary HTML. This is the shape of a picture element with a phone crop, a tablet crop and a desktop fallback. The file names and widths are examples, and Bricks builds the real element from the sources you set:

<picture>
  <source media="(max-width: 600px)" srcset="hero-phone.jpg">
  <source media="(max-width: 900px)" srcset="hero-tablet.jpg">
  <img src="hero-desktop.jpg" width="1600" height="900" alt="A laptop on a desk beside a notebook" fetchpriority="high">
</picture>

The browser walks the source elements from the top and takes the first one whose media condition matches, which is why the smallest query comes first and the unconditional img comes last. The width and height attributes give the browser the intrinsic proportions, so it can reserve the right space before any file arrives. fetchpriority="high" is a hint that this image is the likely Largest Contentful Paint element, so use it on the single first-screen image and nowhere else. There is deliberately no loading="lazy" here, because this is the image that must not wait. The figure after this section compares sending the desktop file to a phone with sending a purpose-made crop.

Audit with the Media Browser. In recent versions the settings include media health checks that incrementally audit the library for missing alternative text, broken files, obsolete formats, missing image sizes and files above a size threshold. The documentation gives default thresholds, with one megabyte for images, and you can change them. It is a cheap way to find the five enormous files that dominate your weight. Check the Academy for the version you run.

Reserve space. Layout shift happens when an image arrives and pushes content down. Set an aspect ratio on the image (the Image element has a control for it, such as 16/9) or give it explicit dimensions, so the browser holds the right amount of room. For long pages, you can also let the browser skip rendering work for sections far below the fold. In the section’s custom CSS, where %root% stands for the element:

%root% {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

The first line tells the browser it may skip layout and paint for the section until it nears the viewport. The second reserves an estimated height so the scrollbar and layout do not jump when the section is rendered, and the auto keyword lets the browser remember the real height once it has seen it. Apply it only to sections well below the first screen, never to the hero, and check in-page anchor links and browser find-in-page behave as you expect.

Video. The Video element for YouTube and Vimeo has a preview image option, and the documentation says the iframe is loaded lazily after the visitor clicks the preview. That removes a heavy third-party frame from initial load. Both platforms have a do-not-track option in the element as well.

Rendered output of the code above
Four small page frames in two pairs: without reserved image space the paragraph jumps down after the image loads, with reserved space it stays in place.
A plain HTML and CSS render of reserved image space, drawn as before and after frames, not a screenshot of the Bricks editor.
Rendered output of the code above
Three image frames: a wide desktop image with a small product in the middle, the same wide image scaled to phone width where the product is tiny, and a tall phone crop where the product fills the frame.
A plain HTML and CSS render of why a phone needs its own crop, not a screenshot of the Bricks editor.

Fonts: fewer files, hosted by you, loaded on purpose

Fonts affect two Core Web Vitals at once. A slow font delays or swaps visible text, which hurts the paint of the main content, and a late swap to a font with different metrics moves the lines of text, which causes layout shift. The best font strategy is the one with the least to load.

Start with the count. Every weight and every style of a family is a separate file. A design with regular, italic, semibold and bold of two families is already eight files. Ask the designer which weights are really used, drop the rest, and consider whether a system font stack is good enough for body text. Some font families are available as a variable font, a single file that covers a range of weights. Whether you can use one in the Font Manager is a detail to check in the current Bricks documentation, since the manager is organised around separate font variations.

Host them yourself. Bricks lets you upload your own fonts. In current versions the Font Manager inside the builder is the recommended place, and the older Custom Fonts screen under the Bricks menu in the WordPress dashboard remains available. The default accepted formats include WOFF, WOFF2 and TTF, and WOFF2 is the compressed format to prefer. Hosting the files yourself removes a third-party connection, and the Bricks documentation notes it is also a way to avoid sending visitor data to Google when you use Google fonts. After uploading, set Disable Google Fonts in the Performance tab so Bricks stops requesting them from Google’s servers.

Select the font where it is used. The documentation is explicit that uploading a custom font only makes it available in the typography controls. It does nothing on the frontend until you pick it in a typography setting, such as an element, a global class, a theme style, page settings or template settings. When a font has several weights or styles, select the family and the weight together in the same typography control so Bricks can match the setting to the correct saved variation.

Preload what matters. The Performance tab has a Preload custom fonts option that adds preload link tags for the matching font files in the head, so the browser fetches them earlier and avoids a flash of unstyled text. The documentation describes its limits: Bricks detects fonts from explicit typography settings in the active page output, but it does not resolve the full cascade across inherited families, separate weight declarations, responsive states, custom selectors or custom CSS. Their example is a button that inherits a custom family from the body but sets only a bold weight on itself, in which case the bold file may not be preloaded. The fix is to set the family and weight together on the element that needs them. Preload only the one or two files used above the fold, since preloading everything just moves the delay.

Choose the loading method knowingly. When Google fonts are enabled, the Webfont loading method option offers stylesheets, the default, which can show a flash of unstyled text before the font arrives, or a Webfont Loader mode that uses JavaScript and hides site content until fonts have loaded. The second removes the flash but delays the first paint of text, so it can hurt Largest Contentful Paint on slow connections. Most sites are better off self-hosting and preloading than choosing the hiding mode.

Finally, a note on fallbacks. Whatever you pick, choose a fallback stack with similar proportions so any swap moves text as little as possible, and check whether your font tooling exposes a display strategy for the font files. That detail is outside what the Bricks documentation spells out in the places this guide verified, so look for it in the Font Manager documentation for your version.

One browser feature helps with the proportions part. A fallback font can be scaled so that its text takes up about the same width as the web font, which makes the lines wrap in the same places before and after the swap. This is plain CSS and has nothing to do with Bricks, so where it goes depends on how your fonts are set up. A rule in the global custom CSS that sets the font-family list on the body is the portable route. Check that it does not fight the typography you set in theme styles.

@font-face {
  font-family: "Body fallback";
  src: local("Arial");
  size-adjust: 112%;
}

body {
  font-family: "Your web font", "Body fallback", sans-serif;
}

The @font-face rule defines a new family name that is backed by a font already installed on the visitor’s device, through local(), so it downloads nothing. size-adjust scales that font’s glyphs, and with them the width of the text. The body rule lists your web font first and the adjusted fallback second, so the fallback is used only until the web font arrives. The value of 112 percent is right only for the pair shown in the figure, a wide web font and Arial. For your own font, compute the value from the real font files, because a number copied from another pair can make things worse. If your text uses the default line height rather than an explicit one, the descriptors ascent-override, descent-override and line-gap-override let you match the vertical metrics as well. Test in a current browser before shipping, since support for these descriptors arrived at different times.

Rendered output of the code above
Three text boxes with the same heading and paragraph: a wide web font, a plain narrower fallback that fits in fewer lines, and a scaled fallback that wraps like the web font.
A plain HTML and CSS render of a font fallback scaled to match a wider font, with Verdana standing in for a web font, not a screenshot of the Bricks editor.

Query loops: the cost you cannot see in the builder

Query loops are the feature most likely to turn a fast page into a slow one, because the cost is hidden. The builder shows a tidy grid. Behind it sit database queries that grow with content, and the builder itself may be limiting results while the frontend is not.

The Bricks documentation gives a short, sensible set of defaults for query performance, and they are worth treating as rules. Set a realistic number of posts per page or items. Avoid the unlimited value on large datasets. Disable query merge on secondary loops. Use No Found Rows when you do not need pagination or total counts. Disable the post meta or term cache updates only when the loop really does not use that data. Add a stable secondary sort when paginating. Keep nested loops small.

Here is why each one matters. Posts per page and the unlimited value decide how many rows are fetched and how many cards are rendered, and rendering cost is multiplied by every element in the card. Query merge is a Bricks feature that automatically merges a loop with the current archive or search query. On a footer loop or any non-main query, it can bend the loop into showing the wrong posts, so switch it off there, which the documentation calls out as the usual choice for header and footer loops. No Found Rows skips the extra count query WordPress runs to compute total pages, which a simple latest-posts strip does not need.

The meta and term cache switches deserve care because they can make things worse. By default WordPress fetches the post meta and term data for all posts in a query in bulk, and then every later read of a custom field or category for a card is served from memory. If you disable the meta cache update and the card reads three custom fields, each read can become its own database query, repeated for every card: the classic N+1 pattern. Only disable the caches when the loop outputs nothing from meta or terms.

Nested loops multiply. Picture a category page that loops through twelve terms and, inside each, loops through six posts. That is one outer query and twelve inner queries, seventy-two cards to render, and a DOM that grows quickly. This is an illustrative scenario, not a measurement, but the shape is general: nesting turns addition into multiplication.

Meta queries and random order. WordPress indexes the post and key columns of the meta table but not the value column, so filtering or sorting by a custom field on a large site can be slow. Random order asks the database to shuffle the whole matching set. Use a stable order, store sortable data in a taxonomy where that fits, or use the Bricks query filters feature, which maintains its own index table and background indexing jobs. That index has its own operating cost, and the settings note that you regenerate it after major content changes.

Cache the loop where it makes sense. The Cache query loops option stores results in the WordPress object cache, with the key made from the element, the query variables and the parent loop context. Without a persistent object cache it only lasts for the request. With Redis or Memcached it can span requests, and the documented advice is to turn it off if results look stale.

One last check, since the builder can mislead. In the builder settings there is a maximum results value for loops in the canvas, set to keep the editor quick. It affects only the canvas, so a loop that looks fine there can be much larger on the frontend. Always test the real page.

Query loop settings: what they change and the risk

What it changesRisk if misused
Posts per pageRows fetched and cards renderedToo low hides content, unlimited is costly
No Found RowsSkips the total-count queryPagination and counts stop working
Disable meta cache updateSkips bulk loading of custom fieldsOne query per field per card
Disable term cache updateSkips bulk loading of termsOne query per card that shows terms
Disable query mergeStops merging with the archive queryMain archive loop shows wrong posts
Cache query loopsReuses results from object cacheStale results if content changes often
The documented query performance controls compared on benefit and the way each can backfire.
Rendered output of the code above
A grid of twelve topic boxes, each holding six small blue card blocks, with a caption stating one outer query plus twelve inner queries and seventy-two cards.
A plain HTML and CSS render of the illustrative nested loop example from the text, twelve terms with six posts each, not a screenshot of the Bricks editor.

Third-party scripts and embeds

Tag managers, analytics, chat widgets, review badges, social feeds and booking widgets are the most common reason a lean Bricks build becomes slow. They arrive one at a time, each reasonable, and nobody owns the sum. Their cost is not only download size. They run JavaScript on the main thread, they open connections to other servers, and some inject content that shifts the layout.

Bricks gives you several places to add code, and the documentation recommends choosing the smallest location that fits. Under the Custom code tab in the settings there are global fields: header scripts, added right before the closing head tag, body header scripts, added right after the opening body tag, and body footer scripts, added right before the closing body tag. Script code in these fields needs script tags around it. For a single page or template, use Page Settings, Custom Code, where the code is scoped to that page. For one element, use element custom CSS. The principle is that a script that only the contact page needs should live on the contact page.

Run an audit. List every third-party request in the Network tab by domain. For each, write down who asked for it, what it does, and what happens if it loads later or never. Many turn out to be abandoned tests. For the ones you keep, load them as late as the use case allows. A chat widget does not need to run before the visitor has scrolled or tapped. This pattern loads a script on the first sign of interaction, with a time-based fallback:

<script>
(function () {
  var loaded = false;
  function load() {
    if (loaded) return;
    loaded = true;
    var s = document.createElement('script');
    s.src = 'https://widget.example.com/loader.js';
    s.async = true;
    document.head.appendChild(s);
  }
  ['pointerdown', 'keydown', 'scroll', 'touchstart'].forEach(function (name) {
    window.addEventListener(name, load, { once: true, passive: true });
  });
  setTimeout(load, 8000);
})();
</script>

Paste this into the body footer scripts field and replace the example address with the real script. The function guards against loading twice. The loop attaches one-time listeners for four kinds of first interaction, so the first tap, key press or scroll triggers the load. The final line is a safety net that loads the script after eight seconds even if the visitor does nothing, and that delay is an example, not a recommendation. If the script sets tracking cookies, it must also respect your consent flow, so load it from your consent tool’s callback rather than from this snippet.

Embeds deserve the same treatment. The Bricks Video element, as noted earlier, can show a preview image and create the iframe only when it is clicked. A map element loads its map library, and requires an API key for some providers, only on pages where you place it. Do not put a map in the footer of every page, because every page then pays for it. For social feeds and review widgets, ask whether a static, periodically refreshed block would do the job.

Lastly, be wary of tag managers. A single container can hide dozens of tags that the people who maintain the site never see. If you use one, review its contents on a schedule and keep the container as small as the business case allows.

Rendered output of the code above
Two video frames side by side: the left one shows a blue poster with a white play button and a title bar, the right one shows a dark empty player area labelled as created after the click.
A plain HTML and CSS render of the preview-first embed pattern, before and after the click, not a screenshot of the Bricks editor.

Caching layers: what each one stores and when to clear it

Speed on a WordPress site is mostly the art of not doing the same work twice, and each caching layer avoids a different piece of work. Knowing which layer holds what tells you what to purge when a change does not appear.

The browser cache holds files the visitor already downloaded: stylesheets, scripts, fonts and images. With external CSS files in Bricks, the generated stylesheets become cacheable files, whereas inline styles ride inside the HTML. A CDN stores copies of those files, and sometimes of the HTML, close to visitors. A page cache stores the finished HTML so PHP and the database do not run at all for most requests. It is the single biggest saving for anonymous traffic, and it is usually provided by the host or a caching plugin. An object cache keeps the results of repeated database work in memory during a request, or across requests when a persistent store such as Redis or Memcached backs it. Bricks uses WordPress’s object cache when you enable Cache query loops. Finally the database does the work when every cache misses.

Three Bricks-specific habits keep these layers honest.

  • Purge widely after structural changes. Editing a component, a global class, a theme style or a header template changes the output of every page that uses it. A page cache that is purged only for the edited URL will keep serving the old design elsewhere. After such changes, purge the whole page cache and, if you use external CSS, regenerate the files first so the new HTML points at current styles.
  • Know what must never be cached for everyone. Cart, checkout and account pages, pages with role-based element conditions, and anything personalised should be excluded or handled by your cache plugin’s rules. A conditions-based element that shows to logged-in users can be cached by mistake for visitors if the cache ignores login state.
  • Expect cached randomness. A query loop ordered randomly looks random only until the page cache stores it. Every visitor then sees the same order until the next purge. The loop settings include a random seed lifetime to avoid duplicate posts across pages, which is a different problem. If true variety matters, do it client-side or accept the cached order.

Forms and nonces deserve a test. If a form fails only for some visitors after you enable a page cache, suspect that a security token in the cached HTML expired. Shorten the cache lifetime below the token lifetime or follow your cache plugin’s guidance for excluding the form.

A rule that avoids confusion: change one layer at a time, and test with each layer cold and warm. A cold test, with caches purged, shows what the first visitor after a purge experiences, while a warm test shows the normal case. Many “it is still slow” reports are just cold-cache tests, and many “it is fast” reports are one warm test on a fast connection.

A request through the caching layers

  1. Browser cacheReuses files already downloaded, such as external CSS and fonts.
  2. CDNServes cached files, and sometimes HTML, from a nearby server.
  3. Page cacheReturns stored HTML so PHP and the database do not run.
  4. PHP and Bricks renderBuilds the page, expanding templates, components and loops.
  5. Object cacheHolds repeated results such as cached query loops.
  6. DatabaseAnswers whatever no cache could.
The path a request takes, with each layer able to answer before the next one does any work.

Optimisation plugins, and keeping the builder responsive

Performance plugins promise a lot, and they do help, but they work by rewriting your output, which is exactly where a component-driven builder can break. Treat each feature as a change with a test plan.

Removing HTML comments. The Bricks query loop documentation is blunt about this one. Bricks writes HTML comments, such as a loop-start marker, around loop output, and they are essential for AJAX pagination, query filters, load more and infinite scroll. Some optimisation plugins remove all HTML comments by default, and the documentation tells you to keep the Bricks ones. If filters or load more suddenly stop working after you enabled an optimisation, check this first.

Delaying or deferring JavaScript. Delaying scripts until the first interaction can improve interaction metrics, but it can also delay the scripts that make navigation menus, sliders, lightboxes, interactions and popups work. Exclude the Bricks main script handle and any script that drives visible, above-the-fold behaviour, and test the mobile menu on a real phone.

Removing unused CSS. Tools that analyse a page and strip rules it does not use can remove styles for states that appear only after JavaScript runs: an open menu, a popup, a selected tab, a loading state, a form error. If you use one, add those classes to its safelist and test each interactive state, not only the initial view.

Minifying and combining. Minification is generally safe. Combining many files into one is less useful on modern connections and can change load order. If Bricks external CSS is on, remember that the generated files are already minified according to the documentation.

Duplicate lazy loading and image rewriting. Bricks already applies native lazy loading, so a plugin that adds its own can fight it, and any plugin that lazy loads every image will also lazy load your first-screen image. If a plugin rewrites image tags into picture elements or changes sources, check it against Bricks’ own source handling for breakpoints.

The rule is the same as everywhere in this guide: enable one feature, clear caches, test the interactive parts logged out, measure, and keep or revert. Write down what you enabled, because six months later nobody will remember.

The builder itself. A slow editor is also a performance problem, and Bricks provides settings for it. In the Builder tab there is a maximum results value for query loops on the canvas. An option to hide WordPress custom fields from the dynamic data dropdown, which the documentation says can noticeably help sites with many custom fields, with the note that you can still type tags such as the custom field tag by hand. The autosave interval can be lengthened or autosave disabled, and there is a fallback to render elements through AJAX if the REST API is blocked, plus an experimental option for sites where Cloudflare Rocket Loader stops the builder initialising. Media health checks run incrementally and can be turned off if they bother a very large library. None of these affect visitors, but a builder that responds quickly makes everyone more careful with the real work.

What to fix first: a decision rule

After the measurement routine you will have a long list of possible improvements. The risk is working through them in the order they are easy rather than the order they matter. A decision rule keeps you on the metric that is failing.

Begin with the field data for the page type. If the first byte is slow, no amount of image work will rescue the page, because every other step waits for the HTML. That points to the server layer: a missing page cache, no persistent object cache, a slow query inside a loop, an overloaded host or a heavy plugin. Use the profile and query inspection from the measurement routine to find which. When the first byte is fine but Largest Contentful Paint is slow, open the browser trace and identify the element. If it is an image, check that it is an Image element, set to eager, in a sensible size and format, and not hidden behind a render-blocking stylesheet or a font that has not arrived. If it is text, look at font loading.

If the metric that fails is layout shift, the problem is almost always something arriving without reserved space: an image or video with no aspect ratio, a font swap, a cookie banner, a late widget, or a loop whose cards change height as images load. If the metric that fails is responsiveness, look at scripts. The Bricks frontend script is small compared with the stack of third-party tags and plugin scripts that usually share the page with it.

Once the failing metric is addressed, move down a general order that rewards effort. First remove or delay third-party scripts that no one needs. Then fix the largest images. Then fix font count and loading. Then tackle CSS volume and the loading method. Then tune query loops on the heaviest templates. Finally, take the cheap switches in the Performance tab. The order is not about difficulty: it is about how much real time each category tends to hold on a typical page, and the first items on the list are the ones teams most often skip because they require a conversation rather than a setting.

Keep each change small and reversible. Record the page, the metric and the baseline before the change, then the same after. If the metric does not move, revert the change, because complexity you cannot justify is a future bug. If it moves, write down the setting, the date and the reason in the project notes so the next person does not undo it as an unexplained oddity.

What to fix first

Which symptom is worst in your field data?
Slow first byteWork on the server layer: page cache, object cache, slow queries and hosting.
Slow main content with a fast first byteInspect the LCP element: eager image, size and format, blocking CSS, font loading.
Layout shiftsReserve space for images and embeds, fix font swaps, check injected banners.
Slow reaction to taps and clicksAudit third-party scripts, defer widgets and reduce main-thread JavaScript.
A rule that routes you from the worst field metric to the layer most likely to hold the cause.
Rendered output of the code above
Two page frames: in the left one a yellow cookie banner pushes the heading and text down, with a dashed red outline marking where the heading was; in the right one the banner sits over the bottom edge and the heading has not moved.
A plain HTML and CSS render of a late banner that shifts the layout and one that does not, not a screenshot of the Bricks editor.

What goes wrong: symptoms and causes

These are the problems that show up most often after performance work, with the cause to check first.

  • A slider, lightbox or icon disappears after an optimisation. A script was delayed or removed, a library handle was dequeued, or an unused-CSS tool stripped styles the library needs. Disable the last change and compare.
  • Load more, AJAX pagination or filters stop working. An optimisation plugin removed the Bricks loop HTML comments, or the loop’s query ID no longer matches the element that targets it.
  • Styles look old after a change. With external CSS, the files were not regenerated, or the page cache and CDN still serve the old HTML. Regenerate, then purge everything.
  • Styles are missing entirely after switching to external files. The uploads folder is not writable, the files were never generated, or a caching layer conflicts. Regenerate the files, check permissions, and revert to inline styles if it persists.
  • The main image became slower after you enabled lazy loading everywhere. The first-screen image is lazy. Set that one Image element to eager and exclude it from any plugin’s lazy loading.
  • Text flashes or the wrong weight appears. The font was uploaded but not selected where it is used, the family and weight were not set together, or preload could not match the setting. Set both on the element.
  • The same “random” order for everyone. The page cache stored one version. Accept it, shorten the cache, or move the shuffle to the browser.
  • A loop shows old content. Cache query loops is on and the object cache is persistent. Turn it off for that site or reduce how long results live in your object cache setup.
  • A template page is slow but a similar page is fast. Look for a nested loop, a loop with the unlimited value, or a meta query on a large table.
  • The lab score is excellent but field data is poor. Real visitors have slower devices, consent banners, ad blockers, logged-in states and different regions. Check the field metric and test on a mid-range phone with throttling.
  • Layout shifts only on phones. The mobile crop or source has no reserved space, or a banner or widget appears late on small screens.
  • The builder crawls on one site only. A large number of custom fields in the dynamic data dropdown, loops with large results in the canvas, or a very large library with health checks running.

When two explanations seem equally likely, undo the most recent change first. Performance bugs introduced by an optimisation are almost always the last thing someone touched.

Checklist

  • Record field data, a lab run and a server profile for each key page before changing anything.
  • Write down WordPress, PHP and Bricks versions, active plugins, cache layers and the CSS loading method.
  • Change one setting at a time, clear caches, and test navigation, forms, popups and sliders logged out on a phone.
  • Choose the CSS loading method by measuring inline styles and external files on staging.
  • If you use external CSS files, regenerate them on deploy and purge the page cache and CDN afterwards.
  • Express repeated design in global classes instead of per-element overrides, and use page-level code for page-specific CSS.
  • Set the first-screen image to eager, use an Image element rather than a CSS background, and keep the rest lazy.
  • Set an aspect ratio or dimensions on every image and embed so layout shift is prevented.
  • Use breakpoint sources to send smaller image crops to phones and prefer registered image sizes.
  • Review the Media Browser health checks for oversized, missing-size and obsolete image files.
  • Host fonts yourself, limit weights and styles, and set the family and weight together in typography controls.
  • Preload only the one or two font files used above the fold, and disable Google Fonts when unused.
  • Give every query loop a realistic limit, avoid the unlimited value on large datasets and keep nested loops small.
  • Use No Found Rows and disable query merge on secondary loops, and disable meta or term cache updates only when unused.
  • Audit every third-party script by domain, remove the unused ones and load the rest after first interaction or consent.
  • Make sure optimisation plugins keep the Bricks loop HTML comments and do not delay the scripts the first screen needs.
  • Purge the whole page cache after editing components, global classes, theme styles or header templates.
  • Keep a change log with the setting, the date, the page and the measured result for every performance change.

About this guide. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.

Frequently asked questions

Is Bricks Builder fast by default?

Its documentation describes a lean base: the main frontend stylesheet and script are always loaded, and extra libraries for sliders, lightboxes, maps, animations, icon fonts and date pickers load only when a page uses them. That is a good starting point, but the final speed depends on your content: image sizes, fonts, loops, third-party scripts, hosting and caching. A Bricks site can be fast or slow. Measure your own pages with field and lab tools rather than relying on any general claim.

Should I use inline styles or external CSS files?

Both are supported, and the right one depends on your traffic. Inline styles are the default, always current and need no files, but the CSS travels inside every HTML response. External files are generated into the uploads folder, can be cached by browsers and CDNs, and must be regenerated after changes. Measure both on staging with representative templates. If external files cause missing or wrong styles with your caching setup, the documentation says to revert to inline styles.

How do I regenerate Bricks CSS files from the command line?

When the CSS loading method is set to external files, run the Bricks WP-CLI command named regenerate_assets, written as wp bricks regenerate_assets. It requires that method to be active. You can also click Regenerate CSS files in the Performance tab of the Bricks settings. Include the command in your deployment routine, then flush the object cache and purge any page cache or CDN so visitors get HTML that matches the current files.

Why is my hero image slow even with lazy loading on?

Lazy loading is the wrong setting for the image visible on first load, because it tells the browser to wait. Set that Image element's Loading option to eager, use an Image element rather than a CSS background so the browser finds it early, serve a size and format suited to the screen, and check that no plugin is lazy loading it again. Then confirm in the browser trace that this image is the Largest Contentful Paint element.

Do Bricks query loops slow down a site?

They can. Cost grows with posts per page, nested loops, meta queries on large tables, random ordering and per-card field lookups. Bricks documents sensible defaults: realistic limits, no unlimited values on large sets, disabled query merge on secondary loops, No Found Rows when pagination is not needed and cache updates disabled only when meta or terms are unused. Inspect real queries with a tool such as Query Monitor, and check the frontend, not only the builder canvas.

Is it safe to turn on Cache query loops?

It is safe when query arguments are stable and you accept that results may be reused. The cache uses the WordPress object cache, with a key that includes the element, the query variables and the parent loop context. It only persists across requests if a server-level object cache such as Redis or Memcached is in place. If you see unexpected or stale results, the documentation advises turning it off. Test content updates before relying on it.

Can a performance plugin break Bricks features?

Yes, mainly by changing output. The clearest documented case is the removal of HTML comments: Bricks relies on loop comment markers for AJAX pagination, filters, load more and infinite scroll, so those must be preserved. Delaying JavaScript can break menus, sliders and popups, and unused-CSS removal can strip styles for states added by scripts. Enable one feature at a time, test interactive parts logged out, and keep a record of what you changed.

How should I load third-party scripts in Bricks?

Use the smallest code location that fits. The Custom code tab in the settings has header, body header and body footer fields for site-wide scripts, and Page Settings has a custom code area scoped to one page or template. Wrap JavaScript in script tags. Load non-essential widgets after first interaction or consent, remove anything unused, and prefer a facade, such as the Video element's preview image, which loads the iframe only after a click.

Do fonts affect Core Web Vitals?

Yes. Slow or late fonts delay the paint of text, which can affect Largest Contentful Paint, and a late swap to a font with different proportions moves text, which can cause layout shift. Use few weights, host the files yourself, select the font and weight together in typography controls, and preload only the files needed above the fold. Check the Bricks Performance tab options for Google Fonts, the webfont loading method and preloading in your version.

Why is my PageSpeed score good but real visitors complain?

A lab score comes from a controlled run on an emulated device, while real visitors bring slower phones, consent banners, ad blockers, different regions and logged-in states. Look at field data in PageSpeed Insights and Search Console to see what users experience, and use the lab run to find causes. Test on a throttled mid-range phone and check pages after a cache purge as well as warm, since a cold cache is a real experience.

What should I do first on a slow Bricks site?

Measure, then pick the layer by symptom. A slow first byte points to the server: page cache, object cache, queries and hosting. A slow main content paint points to the LCP element, usually an image, plus blocking CSS or fonts. Layout shifts point to missing reserved space. Slow interaction points to scripts. After that, remove unused third-party scripts, fix the largest images and fonts, then tune loops and the Performance tab switches.

Does the builder performance matter for visitors?

Not directly, since editor settings do not change the frontend. But a slow builder pushes people to cut corners, so it is worth fixing. The Bricks settings include a maximum results limit for loops on the canvas, an option to hide WordPress custom fields from the dynamic data dropdown, autosave controls and a few compatibility options. Remember that the canvas limit hides the real size of a loop, so always test the actual page too.

W
Written byWPresident EditorialThe WPresident editorial team. Every article says whether it comes from hands-on use or from documentation, and anything paid for is labelled.

Keep reading

Get the Monthly Launch Report

One email a month: the best of last month's articles, new reviews and what changed in WordPress, without the noise.

No spam. Unsubscribe in one click.

Signed and sealed,
The WPresident
↑↓ move↵ openEsc closeAll results