If PageSpeed Insights or Lighthouse flags your Alia popup for a slow Largest Contentful Paint (LCP) or Cumulative Layout Shift (CLS), use this guide to confirm the cause and fix it.
Issue
You test your store in PageSpeed Insights, Lighthouse, or a similar tool and see one or more of the following:
Your performance score is low, and a screenshot in the report shows your Alia popup.
The report names an image or text from your popup as the Largest Contentful Paint element.
The report lists a layout shift (CLS) involving your popup or floating button.
A developer, agency, or consultant has told you your popup is slowing down your site.
Environment
Any Alia campaign that shows an overlay popup or a floating button.
Most common in mobile reports, which PageSpeed Insights shows by default.
Most common on popups that open on a time delay and include a large image.
Resolution
Check whether your popup is the cause
Test the same page with your popup on and off.
Go to PageSpeed Insights.
Enter the URL of the page with the warning and select Analyze.
Note your performance score, LCP, and CLS.
In Alia, go to Campaigns and turn off the campaign that shows on that page.
Run the same test again on the same page.
Compare the results, then turn your campaign back on.
đĄTip: Scores can shift a few points between runs even when nothing has changed. Run each test 2 or 3 times and compare the averages.
Compare the individual metrics, not only the overall performance score. The score blends several measurements, so a single metric tells you more about what changed. Google rates each metric as good at these values:
Metric | Good |
Largest Contentful Paint (LCP) | 2.5 seconds or less |
Interaction to Next Paint (INP) | 200 milliseconds or less |
Cumulative Layout Shift (CLS) | 0.1 or less |
If your results stay about the same, your popup isn't what's lowering your score. The Diagnostics section of the report lists the scripts and elements that are.
If your LCP or CLS improves noticeably with the campaign off, use the matching fix in the next sections.
Fix a slow LCP caused by your popup
Largest Contentful Paint (LCP) measures when the largest element on screen finishes loading. If your popup is larger than anything else on the page and opens on a time delay, testing tools can count the moment it opens as your LCP. Your page may have loaded quickly, but the score reflects when the popup appeared. To confirm, open the Largest Contentful Paint element item in your report. If it shows an image or text from your popup, this fix applies. Alia elements usually include alia in their name, such as alia-popup-root.
Try these fixes in order:
Make your popup's largest image or text block smaller on screen than the largest image on your page, such as your hero or product image. Check your mobile layout too. Once your popup is no longer the largest element, LCP measures your page content instead.
Upload lighter image files. Use WebP images, compress them, and size them close to how large they'll display. On its own, this usually won't fix LCP if your popup is still the largest element, but it helps your popup load faster.
Change your popup's trigger to one that fires after a visitor interacts with the page, such as scroll depth, exit intent, or a button click. LCP stops being measured once a visitor scrolls, taps, or clicks, so a popup that opens after that can't become your LCP. See How to add a scroll depth trigger to your Alia popup (link coming) or Triggering an Alia popup using our SDK.
Changing your trigger changes when visitors see your popup, which can change your signup rate. Try the first 2 fixes before changing your trigger.
Fix layout shift (CLS) caused by your floating button
Cumulative Layout Shift (CLS) measures how much content moves around on the page unexpectedly. Your popup can add to CLS in one situation: your floating button appears before your overlay popup opens. When the popup opens, the button moves or disappears, and testing tools count that as a shift.
To fix this, set your floating button to appear only after your popup is closed, not before it opens. If your CLS stays the same with your campaign turned off, your popup isn't causing it. Check the layout shift items in your report's Diagnostics section to see which elements are.
Check a slow INP
Interaction to Next Paint (INP) measures how quickly your page responds when a visitor taps, clicks, or types. A slow INP usually comes from how long scripts take to run, not from how large a script file is. PageSpeed Insights only shows INP in field data from real visitors, so turning off your campaign won't change it right away. For a quick comparison, check Total Blocking Time in the lab results with your campaign on and off. It measures how long scripts keep the page from responding.
If Total Blocking Time stays about the same, the delay is coming from your theme or another app.
Reduce the number of files your popup loads
If your popup uses the same font as your site, you can tell Alia to reuse it instead of loading it again. This reduces the number of files your popup requests. See Reuse fonts loaded on your site.
Cause
Testing tools take screenshots while your page loads. Because your popup is visible in those screenshots, it is often assumed to be the cause of a low score even when it isn't.
The Alia script loads asynchronously, so your browser keeps building your page while the script downloads. Your popup affects your score in 2 specific cases:
A large popup element opens on a time delay and becomes your LCP.
Your floating button appears before your popup opens and causes a layout shift.
đĄNote: PageSpeed Insights shows 2 kinds of results. Lab data comes from a single simulated test and updates right away. Field data comes from real Chrome visitors over the past 28 days, so it can take up to 28 days to reflect a change.
FAQ
Does the Alia script block my page from loading?
No. The Alia script loads asynchronously by default, so it doesn't pause your page from rendering. Your popup's trigger, such as a time delay, controls when the popup appears. That timing is separate from how the script loads.
Why do I see Alia requests in my report?
This is expected. Depending on your active campaigns, Alia makes a few requests to decide which campaign to show and whether a visitor has already received a reward. These requests run in the background and aren't expected to noticeably affect how quickly your page loads.
Why is the Alia script file so large?
The Alia script contains code for Alia's features. Larger features you haven't turned on are skipped, but some smaller ones stay in the main script, so its size can grow as Alia adds features. File size on its own doesn't show how much Alia affects your page. How much of the code runs, and how long it takes, matters more. A smaller script file won't automatically raise your PageSpeed score.
The report points to a different app or script. Is that Alia?
Alia files load from Alia domains, such as aliapopups.com or alia-prod.com, and Alia elements include alia in their name. If the flagged file or element doesn't match, it comes from your theme or another app. Contact that app's support team for help.
Will changing my trigger lower my signups?
It can. A time delay reaches visitors who don't scroll, while interaction-based triggers like scroll depth and exit intent only reach visitors who interact. To see the effect on your store, run an A/B test between your current trigger and the new one before switching fully.
How do I see my popup's effect on real shoppers, not just a test score?
A PageSpeed score is a lab measurement. To measure how your popup affects conversion rate and revenue for real visitors, run a test that compares showing your popup against showing no popup. See How to A/B test popup vs. no popup in Alia.
Still stuck?
Contact our support team through chat in Alia. To help us investigate quickly, include:
The link to your PageSpeed Insights report.
The URL of the page you tested.
Whether the issue shows on mobile, desktop, or both.
Your results with your campaign turned on and turned off.
