Checking your app performance
Your app’s performance affects how quickly it loads and responds to people. You can measure this using your browser’s Developer Tools. The key performance metrics are Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP).
Measuring app performance in Chrome DevTools
Optimizing your app performance
Optimize your app’s performance by focusing on the key metrics that affect how fast it loads, runs, and responds. Each one highlights a different aspect of the user experience, and you can prompt the Base44 AI chat to optimize them directly.Largest Contentful Paint (LCP)
LCP measures the time it takes for the largest visible element (image, text, or video) above the fold to appear. To optimize LCP:- Keep visible content above the fold light and fast.
- Move heavy elements (videos, iFrames, grids, lists) below the fold.
- Optimize and compress images before uploading.
- Use lazy loading for offscreen images.
Cumulative Layout Shift (CLS)
CLS measures unexpected movement in your app’s layout while loading. To optimize CLS:- Add size definitions: Give every image and video fixed height and width to avoid shifting as they load.
- Optimize custom fonts: Use the
font-display: swap;property in your CSS to prevent invisible text during font loading. - Reserve space for dynamic content: Set fixed spaces for ads, pop-ups, or anything that loads after the initial render.
- Minimize DOM updates: Limit layout changes caused by automatic scripts.
Interaction to Next Paint (INP)
INP measures how fast your app responds to clicks, taps, or keyboard input. To optimize INP:- Avoid long-running scripts triggered by user actions.
- Defer or remove non-essential scripts from the initial load.
- Keep layouts simple and animations minimal.
- Monitor responsiveness in the Performance tab.
Content Delivery Network (CDN) and caching
A Content Delivery Network (CDN) delivers copies of your app from servers closest to the user’s location, improving load times. Base44 automatically uses Cloudflare CDN for caching and delivery.Scaling your app
Base44 hosts your published app and scales it for you, so you don’t need to set up servers as more people use it. There’s no limit on how many people can sign up, visit, or use your app at the same time. As your app grows, the limits it can reach are on its data, requests, files, and credits.Understanding usage limits
These are the limits a busy app can reach, and what happens when it does. Database size and request allowances grow with your plan, while the file and record limits are the same on every plan.- Database size: Your plan sets how much data each app can store and how large a single record can be. When the database is full, your app can’t add new records until you delete some or upgrade. See the database limits for each plan.
- Requests: Each signed-in person has their own allowance of requests per minute, so your app’s capacity grows with its audience. Visitors who aren’t signed in are counted by IP address, so people on one network, such as an office or school, share an allowance. Calls your backend functions make with admin access have a separate allowance for each person or IP address whose action ran the function. Functions that run on their own, such as scheduled automations, share one allowance for the whole app. When an allowance runs out, requests fail for a short time with a 429 error.
- Files: There’s no overall limit on the files your app stores, only on the size of each file. See the file upload limits for your live app.
- Credits: Built-in services, such as sending emails, generating text with AI, and creating images, use integration credits. When your workspace runs out, those actions pause until your credits reset. See what happens when you run out of credits.
Preparing for growth
Most apps reach a limit because of how they load data, not because of how many people use them. Making your app efficient before traffic grows keeps it fast for everyone. Changes that help most:- Load long lists in pages, for example 50 to 200 records at a time.
- Avoid reloading the same data over and over, such as on a timer or every time a page opens.
- Fetch related records in one request instead of one request per item.
- Keep large content, such as long text, out of records. Upload it as a file and save the link in the record.
FAQs
Click a question below to learn more about optimizing site performance.How do I check my app performance?
How do I check my app performance?
You can check your app’s performance using Chrome DevTools or Google PageSpeed Insights.To check with Chrome:
- Quick check:
- Open your published app.
- Right-click anywhere and select Inspect.
- In the right panel, Chrome displays local metrics for Largest Contentful Paint (LCP), Cumulative Layout Shift (CLS), and Interaction to Next Paint (INP).
This gives you an instant view of how your live page performs.
- Detailed check:
- Open Chrome DevTools.
- Click the Performance tab.
- Click Record, reload the page, and stop recording once it finishes loading.
- Review the full performance timeline, including First Contentful Paint (FCP), LCP, and main-thread activity.
- Go to PageSpeed Insights.
- Enter your app’s URL and click Analyze.
- Review the Insights and Diagnostics sections for ways to improve your app’s performance.
What performance score should I aim for?
What performance score should I aim for?
Aim to meet or exceed these recommended scores for the best experience:
- Largest Contentful Paint (LCP): 2.5 seconds or less.
- Cumulative Layout Shift (CLS): 0.1 or less.
- Interaction to Next Paint (INP): 200 milliseconds or less.
Why is my app getting a low score?
Why is my app getting a low score?
A low performance score usually means some elements on your site are taking longer to load than expected. Heavy above-the-fold content, large scripts, or unoptimized media are the most common causes.To troubleshoot:
- Run your app through Google PageSpeed Insights and check for:
- Render-blocking resources: move scripts to
asyncordefer. - Large JavaScript bundles: simplify or split vendor code.
- Unoptimized images: compress and re-upload.
- Render-blocking resources: move scripts to
- In Chrome DevTools, open the Network tab and click Reload to see how your files load in real time.
- Watch for files taking more than 1 to 2 seconds to load. These are likely slowing your app.
- Move videos, data lists, or heavy sections below the fold.
- Compress and resize images before uploading.
- Remove unused scripts or CSS.
- Republish your app to refresh CDN caching.
How do I make videos or animations load faster?
How do I make videos or animations load faster?
- Host videos externally (e.g. on Vimeo or YouTube).
- Add
loading="lazy"to embedded videos or iframes. - Place videos below the fold to prioritize text and images.
- Disable autoplay or loop for large background videos.
Why is my PageSpeed score lower on mobile?
Why is my PageSpeed score lower on mobile?
Mobile tests run on slower networks and devices, so scores are usually lower than desktop. Focus on optimizing your LCP and INP for mobile first by reducing heavy media, deferring non-critical scripts, and simplifying layouts.