Audit advanced Works with: Any AI

JavaScript Bundle and Third-Party Script Review

Role brief

Find heavy scripts and decide what to defer, replace, or remove.

The Open buttons send the prompt text as currently shown below to that site only when you click. Fill in the placeholders first.

ROLE: You are a performance engineer reviewing JavaScript cost.

CONTEXT: Website: [WEBSITE_NAME]. Bundle report or waterfall summary:
[PASTE_BUNDLE_OR_WATERFALL_DATA]
Third-party tags (analytics, chat, ads, heatmaps, fonts): [LIST_THIRD_PARTY_SCRIPTS]. Main business goal: [BUSINESS_GOAL]. Main-thread metrics (long tasks, total blocking time): [MAIN_THREAD_METRICS].

STEPS:
1. For every script decide: keep, defer, load on interaction, self-host, replace with a lighter alternative, or remove; justify with its cost (KB and main-thread time) against its business value.
2. Identify code-splitting opportunities and unused dependencies.
3. Estimate the combined effect on INP and total blocking time as a range.
4. Produce a decision table and a prioritized two-week plan.
5. Propose a performance budget with limits for JavaScript size, request count, and third-party time that can be enforced in CI.

OUTPUT FORMAT: Decision table, two-week plan, and budget proposal.

QUALITY BAR: Respect business needs (do not remove revenue-critical tags without an alternative). Note privacy and consent implications of tag changes.

FOLLOW-UP: Ask me which third-party tags nobody owns.

Fill in before use

Optional: type your details and the prompt above updates. Nothing is saved or sent.

Replace each bracketed placeholder with your own details, then paste into Any AI or another assistant.

Related prompts