Skip to main content
Boletolibre

Audit third-party scripts before a website redesign

A redesign can faithfully copy a slow, unowned script stack—or silently remove a tag that someone still needs. This audit creates a decision record before either happens. It covers scripts and script-driven embeds on a public website, not a request to strip every third-party service. The unit of review is the visitor task on each page, followed by the loading path, evidence, owner and decision.

Boletolibre editorial team

Published

A neutral diagram shows three outside-code nodes feeding a browser page, then a review gate and a selected future page.
Trace each outside dependency to an owner and a visitor task before carrying it into the new site.

Start with page states, not a list of vendors

Download the third-party script audit worksheet (English Markdown)

Choose a small but representative set: homepage, information page, registration or enquiry form, and any externally hosted ticket or booking handoff. For each, record the initial view and a real interaction such as opening a menu, playing media, changing language or starting checkout. Some scripts load only after an interaction or consent choice, so a single first-load screenshot is an incomplete inventory.[1]

Write down the tested URL, date, browser, device or viewport, consent state and action. Compare the existing site with the redesign preview under the same conditions. Keep the ticket provider's pages separate from your own pages: a script seen after crossing to another hostname may be controlled by that provider, not by the website owner.[1]

Capture requests and the path that injected them

Open Chrome DevTools Network before reloading each selected page. Preserve the log when following navigation, and inspect JavaScript, Fetch/XHR, frames and other requests after each action. Group by hostname and use a request's Initiator view to trace what triggered it. A remote hostname can belong to analytics, a video player, a chat tool or a dependency pulled in by another tag; the domain alone is not proof of its purpose.[2]

Reconcile the browser trace with the places code may be installed: page templates, CMS plugins, theme settings, tag-manager containers and embedded widgets. Record both the initiating configuration and the observed requests. A tag manager can be present once yet launch several tags. Conversely, one vendor may be installed directly and through a container, which deserves an explicit duplicate check.[2]

Record purpose, owner and dependency

Give each service an accountable owner who can explain why it exists and what would fail without it. Record the function, pages and states where it is needed, source of installation, vendor contact or documentation, renewal or campaign end date, and the evidence for continued use. A former agency's tag with no current owner is a question to resolve, not automatic permission to delete it.[1]

Classify dependencies by visitor task. A ticket widget may be essential on the ticket page but irrelevant on an FAQ; a map may belong only on the venue page. If a script supports a critical action, document a fallback link or support route as part of the redesign. That is a business decision as much as a speed decision.[1]

Measure cost in a repeatable visit

Run a comparable baseline on at least one slower mobile-like condition and repeat it after a proposed change. Record request count, transferred bytes, when the script starts, the chain of requests it triggers and main-thread work in the Performance panel. Third-party code can create network and CPU costs, but a small download can still do expensive work and a large download can provide necessary function. Avoid ranking services by bytes alone.[1][3]

Observe the task, not just the load score. Test whether the event date and primary action appear promptly, whether a form accepts a safe test entry, and whether the ticket handoff remains usable. Note variability across runs and do not assign a precise page delay to one vendor without isolating it. This worksheet is for comparing an actual before/after journey, not manufacturing a universal script limit.[1][3]

Make a scoped carry-forward decision

For each service choose keep, restrict to relevant pages or interactions, replace, investigate, or remove. Include who approves the choice and the reason. Restricting a useful widget to its task page can preserve value while avoiding unrelated page work. If an implementation needs to change, ask the developer to evaluate loading order and test it: async and defer have different execution timing, so either can break code that expects a particular sequence.[4]

Do not copy every legacy tag into the redesigned template by default. Give a service a place only when its owner can name the visitor or measurement need, the exact page states, and an acceptable cost. When evidence is missing, mark the decision as investigate and assign a deadline. A blank owner or unexplained tag is a release question, not a silent carry-forward.[4]

Example serviceObserved locationDecision and proof
Embedded venue mapVenue page and homepageRestrict to venue page after checking directions remain usable
Legacy campaign pixelAll pagesInvestigate campaign owner and live reporting before removal
Ticket widgetTicket pageKeep with approved direct ticket link as fallback

Walk through one fictional redesign decision

Suppose a festival homepage loads a venue map, ticket widget, legacy campaign pixel and analytics tag. The approved homepage task is to show date, venue and ticket path; the map belongs on the directions page, while the widget belongs on the ticket page. The analytics owner confirms one live tag path. Nobody can identify a current report for the legacy pixel, so it stays under investigation until the campaign owner signs off. This is a decision record, not a claim that any particular arrangement is universally fastest.

The reviewer now tests the old and preview homepages with consent denied and accepted, follows the ticket path, checks the text directions and verifies the expected measurement event once. A lighter homepage is useful only if those tasks still work. If the ticket widget is hosted by another provider, the organizer records where its own page ends and the provider page begins. Each changed item has a named owner, an evidence link and a restoration path.

Rehearse removal and sign off

Change one installation path at a time in a preview environment and repeat the same tasks and consent states. Verify the request disappeared or moved where intended, then check forms, video, navigation, ticket handoff and measurement events that depend on it. Keep a rollback note describing the prior configuration and who can restore it. Do not remove a tag merely because a single run happened to show no event.[2][5]

A practical release gate is simple: every retained third-party service has a named owner, purpose, page scope and working test; every removed one has an approved reason and a regression check. Recheck the live site after publication because production tag-manager versions, CMS settings or vendor scripts can differ from preview. Keep the register for the next campaign or redesign rather than rebuilding it from memory.[2][5]

Sources and further reading

  1. Third-party JavaScript performanceweb.dev / Chrome team · Accessed
  2. Network features referenceChrome DevTools · Accessed
  3. Analyze runtime performanceChrome DevTools · Accessed
  4. Efficiently load third-party JavaScriptweb.dev / Chrome team · Accessed
  5. Preview and debug containersGoogle Tag Manager Help · Accessed