Skip to main content
All rules

PERF-011

The same script is loaded twice

LowDefault severity · Performance · SEO, quality and performance

Last reviewed

What it checks

Script tags with the same resolved src.

Why it matters

The script downloads and runs twice, which wastes time and can double tracking events or event handlers.

Recommended fix

Keep one script tag per file.

How to verify

View the page source and confirm each script appears once.

Example fix prompt

Generic prompt (your report adds the evidence)
Please fix this production issue in my app.

Issue PERF-011: The same script is loaded twice
Site: https://your-app.example

First confirm the issue in the code or live config. If it is not present, say so and change nothing.
Task: Remove the duplicate script tags in the evidence so each script loads once (check layouts and tag managers that may inject it again).

Constraints: make the smallest change that fixes this, keep the current design and behaviour, never paste secret values into code or chat, and tell me which files you changed.
Done when: View the page source and confirm each script appears once.

References