Blog / Framer & site building /
Framer page speed and third-party scripts
A Framer site loads a chat widget, analytics, an embedded video and a form script. All before the visitor reaches the main content.
It still looks beautiful. That’s the trap.
Every extra script can add work, delay interaction or nudge the layout around. Third-party code isn’t automatically bad, though. It just needs a clear job and an owner. So start with two questions for each one: what does it do, and does your site need it on every page?
Make an inventory
List the third-party scripts, the pages they load on, the owner and the purpose. Include analytics, chat, scheduling, maps, video embeds, review widgets and marketing tags. Check whether each integration is built into the site or added through custom code.
Only remove a script once you’ve confirmed the business no longer needs the feature or measurement. A chat widget may support sales. An analytics tag may be needed for reporting. Ask the owner before changing anything tied to customer support or consent.
Test the page with and without a script
Use browser developer tools to look at requests, long tasks and layout changes. In a safe test environment, compare a typical page with the script on and off. Note the load order, any errors and whether the visitor’s task still works.
A script can hurt LCP by delaying the main content. It can hurt INP by hogging the main thread. And it can hurt CLS by injecting content without reserving space. Find the measured problem. Don’t blame every request in the network panel.
Load features where they are needed
A booking script may only be needed on the booking page; an embedded video may only appear in one article. If a page doesn’t use a feature, see whether its script can load conditionally or later. Test dependencies carefully. A form can fail silently if a library it needs gets deferred.
Framer’s site controls and embed behaviour change over time. Check current documentation for the project and test the published site, not just the editor preview. If you need custom code, note who maintains it and how to test it after an update. I’d add that note the day the code goes in, not when something breaks.
Keep consent and privacy in view
Third-party scripts may collect or send data. With the privacy owner, confirm how they behave before and after a consent choice. Don’t assume the consent banner blocks every request properly. Test in a fresh session and watch the network activity.
If a script is essential, explain why and make sure its configuration matches the site’s policy. If it isn’t, consider a lighter or native option that does the same job. Removing a script can speed things up while creating a business or measurement problem, so weigh both sides.
Review after publishing
Retest mobile layouts, forms, navigation and key actions after script changes. Measure under similar conditions and keep a short change log. If a provider updates its code, repeat the check.
Choose what should load first
A page needs its main content and key controls to appear reliably. Decide which scripts the first view needs and which can wait until the visitor reaches a section or chooses a feature. If an embedded video sits below the fold, the page may not need the full player straight away. A contact action, though, shouldn’t vanish behind an asynchronous widget.
Use a waterfall or performance trace to see the order of requests. Test with a clean cache on a slower connection. A script that seems harmless on fast office Wi-Fi can drag a page down somewhere else. Keep a baseline so you can tell whether a change actually helped.
Look for lighter alternatives
Some providers offer a click-to-load embed, a static preview or a simpler integration. Compare the user experience and privacy implications before switching. A native Framer component may cover a basic function without a third-party request. A complex workflow may genuinely need a specialised service.
Don’t remove a useful feature just because it adds a request. The question is whether the benefit is worth the cost on the pages where it runs. If a tool has no owner and no clear purpose, that’s a much better reason to review it.
Check mobile and consent paths
Third-party scripts can behave differently on mobile or after a consent choice. Test a first visit and a return visit with the expected settings for each. Check the feature still works when its optional scripts are blocked, and that the page explains any limitation. Keep performance changes in line with the consent policy. Don’t chase a better score by changing which services load.
Set a practical budget for scripts
A script budget doesn’t have to be an arbitrary number of kilobytes. Start with the page’s purpose and pick out the essential services. Compare requests and interaction effects before and after a change, then decide whether the benefit justifies the extra work. Pages with different jobs may need different integrations.
If the same service loads through both a global embed and a page-level widget, remove the duplicate only after testing the user flow. Keep the integration owner in the loop and note why the script stays. If I can’t say what a script is for, I’d rather not load it.
Related reading
- Documenting a framer plugin without confusing users
- Checking a framer site before launch
- Structured data on a framer site
Here’s a quick exercise. Pick one Framer page with several embeds and write down what each script contributes. Which one could you remove, delay or limit to fewer pages without breaking a customer task?