When HighLevel custom code is slow, the cause is almost always one of a handful of things: a huge stylesheet pasted into the Custom Code box, images embedded as text, chained @import files, too many third-party widgets, or a script that does work on every click. You can prove which one in about 15 minutes, and most fixes take less.
The complaint usually reaches you from a client, not from your own testing. “The CRM is slow since last week.” Or a sales rep sits watching a spinner while HighLevel (also called GoHighLevel or GHL) loads the contacts list. This guide shows how to tell whether your code is really to blame, how to measure it in Chrome’s free developer tools, which causes are most common and how to fix each one, how to test a fix on one client first, and what a lighter theme does not fix. GHL Dashboard Builder is an independent design service and is not affiliated with HighLevel; where our product helps, we say exactly what it does and where it stops.
Why is my HighLevel dashboard slow after adding custom code?
A HighLevel dashboard gets slow after adding custom code when that code makes the browser download, parse or repeat too much work. Plain CSS rules cost almost nothing. Large files, embedded images, chained imports, extra widgets and scripts that run constantly are what turn a fast CRM into a slow one.
It helps to understand where the code runs. Anything in HighLevel’s agency Custom Code settings (Settings, Company, Whitelabel, Custom Code at the time of writing) is added to every page of every sub-account. HighLevel is a single-page application: after the first load it swaps screens without a full page reload. That means a script added to the box usually runs once on load and then keeps running in the background while staff click from Contacts to Conversations to Opportunities.
So there are two moments where custom code costs time. The first is the initial load, when the browser must fetch and apply your CSS and JavaScript on top of HighLevel’s own files. The second is every interaction afterwards, when a script that watches the page or polls for data competes with HighLevel for the same browser thread. A slow first load feels like “the CRM takes ages to open”. A slow interaction feels like “every click lags”.
HighLevel itself acknowledges the link. Its help article on CRM loading states and the impact of custom CSS and JS explains that custom CSS can disrupt the loader when it overrides the loader’s styles, and that custom JavaScript can break the loader when it changes the events the loader listens to. The result can be a page that stalls or never finishes loading, which clients describe as “slow” even though it is really stuck.
There are also slowdowns that have nothing to do with your code. HighLevel’s own servers can have a slow day, a client’s office network can be poor, and browser extensions (ad blockers, grammar checkers, password managers) inject their own scripts into every page. That is why the first step is always to prove the cause rather than guess it.
How do you tell whether it is your code or HighLevel?
Compare the same screens with and without your custom code, in a clean browser. If HighLevel is just as slow with the code turned off, the problem is HighLevel, the network or the browser. If the slowness disappears when the code is off, your code is the cause, and the measuring section below finds which part.
Here is the comparison, in order. It takes about 15 minutes and needs no developer.
- Open a private window. Private (incognito) windows start with an empty cache and, by default, without most extensions. HighLevel’s loading-states article recommends testing this way first.
- Pick three screens and time them. For example the Dashboard, the Contacts list and a pipeline on the Opportunities board. Load each one three times and note roughly how long it takes until you can click.
- Save a copy of your code. Open Settings, Company, Whitelabel, Custom Code, copy the contents of both boxes into a dated text file and keep it. Never clear a box without a copy.
- Turn the code off. Clear both boxes and save, or, if your theme is installed as hosted lines, switch the theme off in the tool that hosts it.
- Repeat the timing. Same private window approach, same three screens, three loads each.
- Compare and restore. Paste the code back (or switch the theme on) once you have your answer.
If the code turns out not to be the cause, check the client’s side: a second browser, another network, extensions off. You can also see whether others report problems on HighLevel’s ideas board and status channels; our guide to the GHL ideas board explains where HighLevel collects reports and requests.
One special case: if your theme vanished rather than slowed down, check whether HighLevel’s new navigation is switched on. HighLevel’s article on using custom CSS and JavaScript with the Custom Navigation says legacy custom code is disabled by default for views using Custom Navigation, and a toggle in the White Label settings turns it back on. That is a missing theme, not a slow one, and our guide to GoHighLevel custom CSS that is not working covers it in detail.
| What you see | Most likely cause | First check |
|---|---|---|
| Slow only with the code on | Your custom code | Measure it in DevTools (next sections) |
| Slow with and without the code | HighLevel, network or device | Another network, another browser |
| Slow in the normal window, fast in private | A browser extension or a stale cache | Turn extensions off one by one; clear site data |
| Endless loading spinner | Code conflicting with HighLevel’s loader | Turn the code off, clear site data, hard-refresh |
| Default look flashes, then the theme appears | Styles arriving late | Check how the CSS is loaded (see the flash section) |
| Theme gone entirely | Custom Navigation switched legacy code off | White Label settings, legacy custom code toggle |
What makes HighLevel custom code slow?
Five causes account for most slow HighLevel themes: images or fonts embedded as base64 text, chained @import files, very large pasted stylesheets, too many third-party widgets, and scripts that do heavy work on every page change. Each has a clear fix, and the first two are the easiest wins.
Images and fonts embedded as base64
Base64 is a way to write a file as plain text so it can sit inside CSS, as in url(data:image/png;base64,...). It is convenient, because the logo or background lives inside the stylesheet. It is also heavy. MDN’s glossary entry on Base64 explains that the encoded version is typically about a third larger than the original file, and its arithmetic gives at least 133% of the source size.
The bigger cost is caching. An image linked as its own file is downloaded once and reused. An image embedded in pasted CSS travels with the CSS, so every time you change one color in the stylesheet, every visitor downloads the whole image again. A 1 MB background photo turned into base64 can make a stylesheet heavier than the rest of the theme combined.
Minimum size of each image once written into CSS as base64 text. Source: Calculated from MDN Web Docs, Base64: the encoded version is at least 133% of the source size.
The fix is simple: host images and fonts as separate files and link them with a normal URL. Keep base64 for tiny icons, if at all.
Chained @import files
An @import line inside a stylesheet tells the browser to fetch another stylesheet. The problem is order. web.dev’s module on optimizing resource loading explains that style sheets loaded with an @import declaration can’t be discovered early by the browser’s preload scanner, so they become late-discovered, render-blocking files. The browser downloads the first file, reads it, finds the import, and only then starts the second download.
Google Fonts added through @import, a theme file that imports a reset file that imports a font file: each step adds a round trip before your styles can apply. Replace imports with direct files where you can, or combine them into one stylesheet.
Very large pasted stylesheets
Agencies that have patched a theme for years often end up with thousands of lines in the Custom CSS box, much of it for screens HighLevel has since redesigned. Every line is shipped and parsed on every load. Chrome’s Coverage panel shows how much of a stylesheet or script a page actually uses, and Chrome’s own documentation notes that removing unused code can speed up page loads. HighLevel’s article on improving funnel and website page speed gives the same advice for its sites: delete outdated custom CSS, JavaScript and embeds that are no longer required.
Too many third-party widgets
The Custom JavaScript box is also where agencies paste live chat, analytics, heatmaps, session recording, onboarding tours and support widgets. Each one loads its own files and runs its own code. Two chat widgets someone tried and never removed cost as much as two you use. Audit the box once a quarter and remove anything nobody can name an owner for.
Scripts that work on every change
Because HighLevel swaps screens without reloading, custom scripts often watch the page for changes, using a MutationObserver or a timer, and then rename a menu item or add a button. Done carelessly, that check runs hundreds of times a second and scans the whole page each time. The next sections explain how to spot it and what a light script does instead.
How does GHL Dashboard Builder keep a HighLevel theme light?
GHL Dashboard Builder delivers the whole design as one stylesheet and one script, about 60 KB compressed, loaded from two hosted lines that browsers cache after the first visit. Updates go live without editing HighLevel, and a design can be limited to the sub-accounts you choose.
GHL Dashboard Builder is an independent design service that turns the standard HighLevel (GoHighLevel) dashboard into a branded platform: your colors, menu, login design, privacy mode and your clients’ language, installed with two lines of code. For an agency fighting a slow, patched-together Custom Code box, the relevant part is how that code is delivered and maintained. The full feature list is on our features page.
How the two hosted lines work
You paste one CSS line into Custom CSS and one JavaScript line into Custom JavaScript at Settings, Company, Whitelabel, Custom Code, which takes about five minutes, and on every plan we do the install for you. Those lines point to your design’s files, which are served compressed from Cloudflare’s edge network. Browsers keep a copy and, on each page load, simply ask whether it changed. When nothing changed, the answer is a quick “not modified” and the browser uses its copy. web.dev’s guide to the HTTP cache describes exactly this pattern: the browser revalidates with an ETag, and the server answers 304 Not Modified when the file is unchanged.
That design has a practical benefit beyond speed. When you press Deploy to live after changing the design, the next page load picks up the new version, and nobody has to open HighLevel’s settings or paste anything again.

What each part does for your clients, and which plan includes it
| Feature | What it does for your clients | Plan |
|---|---|---|
| Two-line install | One cached stylesheet and one script replace a long pasted Custom Code box | Starter and up |
| Deploy to live | Design changes reach every sub-account on the next page load, with no re-pasting | Starter and up |
| Turn the theme off | An emergency switch that serves plain HighLevel without touching its settings | Starter and up |
| Single sub-account | The design loads its look only in the sub-accounts you pick | Starter and up |
| Live preview on every device | Check the design on desktop, tablet and phone before anything touches your account | Starter and up |
| Live counts | Unread conversations, today’s appointments and more on the menu, refreshed every minute | Pro |
| Custom CSS and JavaScript | Your own code added inside the design, maintained in one place | Agency |
| Downloadable CSS and JavaScript files | The full files for agencies that want to host the code themselves | Agency |
Starter ($280) gives one design from any of our 27 templates. Pro ($480) adds up to 3 designs, the menu editor with live menu counts, the branded login page and 15 languages. Agency ($880) adds up to 100 designs, a look designed by our team, custom CSS and JavaScript, downloadable files and lifetime updates. All three are one-time payments with no monthly fee, plus a one-time $100 setup fee on every plan, for which we install and configure the design in your HighLevel. Starter and Pro include 12 months of updates, then optional at $99 a year. Current details are on the pricing page.
What changes for your client afterwards
The client logs in on your white-label domain and sees their colors, your menu wording and the features you switched on. Behind the scenes, the Custom Code boxes hold two short lines instead of pages of patches. The installed code changes styling and menu labels and adds the features you enable; it does not read or send customer data anywhere outside HighLevel. If you write your own CSS today, our page on GHL custom CSS shows what the builder produces instead.
How do you measure what custom code costs in HighLevel?
Measure with Chrome DevTools, which is built into Chrome and free. The Network panel shows how big your files are and how long they take, the Performance panel shows long tasks that freeze the screen, and the Coverage panel shows how much of your CSS and JavaScript the page actually uses.
Open HighLevel, press F12 (or right-click and choose Inspect), and work through the three panels below. Do it once with your code on and once with it off, so you have a baseline.
Network: file size and load time
- Open the Network panel and tick Disable cache. Chrome’s Network features reference explains that this emulates a first-time visitor.
- Optionally choose a slower connection from the Throttling drop-down, such as a 4G preset, to see what a client on a weak connection experiences.
- Reload the page. Filter by CSS and then JS, and find your files among HighLevel’s.
- Note the transferred size and the time of each of your files. Look for anything unexpectedly large, files that start only after another file finishes (a sign of
@import), and requests that keep repeating while the page is idle.
Performance: long tasks that freeze clicks
The Performance panel records what the browser does over time. Press record, click through a few HighLevel screens, then stop. Long tasks appear as grey task bars with red markers on the main thread. web.dev’s guide to optimizing long tasks defines a long task as any work that keeps the browser busy for more than 50 milliseconds, during which it cannot respond to the person clicking.
Click a long task and look at the Bottom-Up tab to see which script spent the time. If the top entries point to your custom script, or to a third-party widget you added, you have found the slowdown.
The user-facing measure is Interaction to Next Paint (INP), the delay between a click and the screen visibly updating. web.dev’s article on Interaction to Next Paint rates 200 milliseconds or less as good and more than 500 milliseconds as poor.
Infographic
Custom code speedby the numbers
50 ms
or more of busy browser time counts as a long task
(web.dev, Optimize long tasks)
200 ms
or less from click to screen update is a good response
(web.dev, Interaction to Next Paint)
133%
minimum size of a file once embedded as base64 text
(MDN Web Docs, Base64)
60 KB
about the compressed size of a GHL Dashboard Builder theme
(GHL Dashboard Builder)
Sources: web.dev, Optimize long tasks and Interaction to Next Paint (INP); MDN Web Docs, Base64; GHL Dashboard Builder product FAQ.

Coverage: how much of your code is used
Open the Coverage panel from the Command Menu (Ctrl+Shift+P, or Cmd+Shift+P on a Mac, then type “coverage”). Click the reload button in the panel, use a few screens, and stop. Each file gets a bar: green for used bytes, grey for unused. Chrome’s Coverage documentation lets you click a file to see exactly which lines ran.
A high unused share in your custom CSS is normal for a theme that styles many screens, since one page only uses part of it. What matters is the absolute size: 80% unused of a small file is harmless, 80% unused of a 2 MB file is not.
How do you fix slow HighLevel custom code, step by step?
Fix the heaviest cause first, test the fix on one sub-account, then roll it out. In most slow themes, moving images out of the CSS and removing unused widgets and imports solves the problem before you need to touch any script logic.
Infographic
Fix slow HighLevel custom codein seven stages
- 1
Back up the code
Copy both Custom Code boxes into a dated file before changing anything.
- 2
Prove the cause
Compare three screens with the code on and off in a private window.
- 3
Measure it
Use the Network, Performance and Coverage panels to find the heavy part.
- 4
Remove dead weight
Delete old widgets, unused rules and code for screens that no longer exist.
- 5
Fix files and scripts
Unembed images, replace @import and make scripts do less per change.
- 6
Test on one client
Load the fixed version in one sub-account and check every main screen.
- 7
Roll out and watch
Apply it everywhere and recheck after the next HighLevel release.

Step 1: Back up both boxes
Open Settings, Company, Whitelabel, Custom Code in your agency view. Copy everything in Custom CSS and Custom JavaScript into a text file named with today’s date. Our guide on where to add GoHighLevel custom CSS covers these boxes, rollback and removal in detail.
Step 2: Prove the cause
Run the on-and-off comparison from the second section. Write down the timings. If the code is not the cause, stop here and look at the network, the browser and HighLevel’s status instead.
Step 3: Measure
Use the three DevTools panels. Make a short list: the five largest files you control, any long tasks that point to your scripts, and any request that repeats while the page sits idle.
Step 4: Remove dead weight
Delete what nobody uses before optimizing what remains. Typical candidates are a chat widget from an old trial, a second analytics tag, CSS for a menu layout HighLevel replaced, and rules that hide elements HighLevel no longer shows. Each deletion is free speed.
Step 5: Fix files and scripts
- Move base64 images and fonts into separate hosted files and link them.
- Replace
@importlines with direct files, or merge the imported CSS into the main stylesheet. - Load third-party widgets with the vendor’s asynchronous snippet, so they do not hold up HighLevel.
- Make watching scripts check for their target element and stop, and wait a short moment after page changes before acting, so hundreds of checks become one. Our guide to HighLevel custom JavaScript shows a pattern for this.
- Replace polling every second with a slower refresh where the data allows it.
Step 6: Test on one sub-account
Do not push an untested fix to every client. The testing section below explains how to limit code to one sub-account.
Step 7: Roll out and recheck
Apply the fix everywhere, time the same three screens again, and keep the new dated copy. Recheck after the next large HighLevel release, because new screens can bring new conflicts.
Why do scripts that watch the page or poll for data slow every click?
Scripts that react to every page change, or ask a server for data every second, keep the browser busy while staff are trying to work. In a CRM that people use all day, a small delay on every click adds up to a tool that feels slow, and clients blame the tool, which carries your brand.
HighLevel redraws parts of the screen constantly: lists load, menus open, conversations update. A MutationObserver attached to the whole page fires on every one of those changes. If the callback then searches the entire page with broad selectors, rewrites menu text and re-adds buttons, the work multiplies. On a busy screen such as Conversations, that can produce exactly the long tasks the Performance panel flags.
Polling is the second pattern. A script that fetches unread counts or new leads every second makes 3,600 requests an hour per open tab, and each response triggers more page updates. Counts that refresh once a minute are just as useful to a front desk and cost a small fraction of the work.
Three rules keep watching scripts light:
- Watch narrowly. Observe the menu or the area you change, not the whole document, wherever HighLevel’s structure allows it.
- Batch the work. Wait briefly after a burst of changes and act once, rather than on every single change.
- Check before writing. If the menu label already says “Patients”, do nothing. Rewriting text that is already right triggers another change, which can cause an endless loop.
This is also where many agencies’ homemade counters and badges come from: a script that polls HighLevel for unread messages and paints a number on the menu. It is a useful idea, and the cost depends entirely on how often it runs.
Why does HighLevel flash its default look before the theme appears?
The flash happens when HighLevel draws its own interface before your styles arrive. For a moment the client sees the standard blue look, then your theme snaps in. It is a timing problem: the style file was slow to arrive, was chained through @import, or was applied by a script after the page had already drawn.
The flash matters more than its length suggests. It reminds every client, on every load, that your platform is HighLevel underneath. It also looks like a fault, which prompts support tickets that say “the CRM is glitching”.
Common causes and fixes:
- Styles applied by JavaScript. If a script inserts your CSS after HighLevel loads, the page always draws first without it. Put styles in a stylesheet loaded from the CSS box, and keep JavaScript for behavior.
- Chained files. Each
@importadds a round trip before styles apply. Remove imports. - Uncached or slow files. A file served from a slow host, or with headers that stop the browser from keeping a copy, arrives late on every load. Serve it from a fast host with caching.
- Heavy first paint. A stylesheet carrying megabytes of embedded images takes longer to download and parse. Unembed the images.
GHL Dashboard Builder’s hosted files are kept at Cloudflare’s edge and answered from there at once, specifically so HighLevel’s own look does not linger while the theme loads. A brief flash can still appear on a very slow connection or the first visit after clearing the browser’s data, because HighLevel always draws its own page before any custom file arrives.
How do you test a fix on one sub-account before every client gets it?
HighLevel’s agency Custom Code applies to every sub-account, so a change tested “live” is tested on every client at once. To test safely, make the code act only in one sub-account, identified by its Location ID in the page address, or use a tool that limits a design to chosen sub-accounts.
The Location ID is the unique code for each sub-account, visible in the address bar after /location/. Our guide to the HighLevel Location ID shows where to find it. A hand-written script can read that ID and stop early everywhere else. That limits what the code does, though the files are still downloaded in every sub-account.
A good test plan uses a sub-account that matches a real client: real-looking contacts, a pipeline with stages, calendars with appointments and an active conversations list. An empty demo account hides problems, because a script that is fast on ten contacts can be slow on ten thousand.
GHL Dashboard Builder handles this from one install: choose “Only these sub-accounts” and add the sub-account by its link or Location ID. That sub-account gets the new design, while your other sub-accounts and the agency view keep their current look. You can add more sub-accounts as each test passes, and remove one at any time.

What to check in the test sub-account
Time the same three screens you used for the baseline. Open the Conversations list and leave it running for a few minutes while you watch the Network panel for repeating requests. Click through the pipeline board, open a contact, send a test message and book a test appointment. Check on a phone-sized screen too. If everything matches or beats the baseline, roll out.
You can also check a design before it ever reaches HighLevel. Our device preview shows the design on a live copy of HighLevel’s screens on desktop, tablet and phone, so layout problems are caught before install rather than in a client’s account.
Should you fix it yourself, hire a developer or use a maintained theme?
Fix it yourself if the cause is simple: an old widget, an embedded image, an @import. Hire a developer if a script you depend on is the problem and you want to keep it. Use a maintained theme if the box has grown into years of patches that break after HighLevel releases.
The right choice depends on how much the code does and who will maintain it after the fix. A slow theme usually becomes slow again if nobody owns it. Our guide on hiring a developer for GoHighLevel custom CSS covers what to ask a developer and what ongoing maintenance costs.
| Decision point | Fix it yourself | Hire a developer | Use a maintained theme |
|---|---|---|---|
| Typical cause | Old widgets, embedded images, @import | A complex script you want to keep | Years of patches in a crowded box |
| Skills needed | Copying, deleting, DevTools basics | JavaScript and HighLevel’s page structure | None to install; we install it on every plan |
| Time to result | An afternoon | Days to weeks, depending on the script | A few business days to design, about five minutes to install |
| Cost | Your time | Hourly or project rate | One-time plan from $280, plus a one-time $100 setup fee |
| After HighLevel updates | You check and fix | Paid fixes per change | Included updates (12 months on Starter and Pro, lifetime on Agency) |
| Risk | Breaking a working script | Depends on the developer | Custom code is unsupported by HighLevel, so a big release can need a refresh |
If you choose a maintained theme but still need a script of your own, such as a specific tracking tag, the Agency plan includes custom CSS and JavaScript inside the design, so everything lives in one place. Our hub on GHL dashboard customization lists what else a theme can change, and you can browse the templates or start from the native HighLevel look and change only the colors.
What can go wrong, and what doesn’t a lighter theme fix?
A lighter theme makes your own code cheaper; it does not make HighLevel faster than HighLevel is. Slow servers, heavy reports, huge contact lists, a weak office network and browser extensions are outside any theme’s control. And because HighLevel doesn’t officially support custom code, a platform update can still require a theme refresh.
Common problems while fixing
- Clearing the boxes without a copy. The most expensive mistake. Always save a dated copy first.
- Fixing in production. Testing directly in the agency box means every client sees each attempt. Test in one sub-account.
- Removing a widget a client relies on. Before deleting a chat or tracking tag, ask who uses it. Some clients depend on a chat widget for support.
- Measuring with a warm cache only. A file that is fast on the second load can be slow on the first. Test with Disable cache on as well as off.
- Blaming the theme for a stuck loader. HighLevel’s loading-states article suggests clearing site data and hard-refreshing; try that before rewriting code.
- Missing the Custom Navigation switch. If HighLevel’s new navigation is on, legacy custom code may be off by default. That makes a theme disappear, not slow down.
What no custom code can fix
Large reports and dashboards with many widgets take time because HighLevel has to compute them. Lists with tens of thousands of contacts take longer to filter. The HighLevel mobile app does not run your custom code at all, so a slow app is a HighLevel or device matter. And a client’s office Wi-Fi or a laptop full of extensions slows every website, not just HighLevel.
What a lighter theme does do is practical: one cached stylesheet and one script instead of a crowded box, scripts that wait instead of running constantly, and a design you can update, switch off or limit to chosen sub-accounts without editing HighLevel. Our FAQ answers the most common install and removal questions.
What to do next
- Back up your Custom Code boxes today. Copy both into a dated file, even if nothing is slow yet. It turns any future problem into a one-minute rollback.
- Run the on-and-off comparison. Time three screens in a private window with and without your code, so you know whether your code is the cause at all.
- Open the Coverage and Network panels once. Note your five largest files and any request that repeats while the page is idle. Remove what nobody uses.
- Try a lighter, branded look. Load a template with your colors and menu wording in the free builder and compare it with what you run today.
- Plan maintenance. Decide who checks the theme after HighLevel’s large releases, and compare one-time plans with included updates on the pricing page.



