Works with your stack
Cookie consent for Perfmatters
delay all, except consent
Perfmatters can delay all JavaScript until the first interaction, defer scripts and switch scripts off page by page. A consent script has to escape all three.
By Perfmatters · perfmatters.io
Is this your product? Tell us if anything here is out of date. Write to us
Perfmatters
WordPress plugin
- How
- Reproduced in the Cookie Rocks tests
- Last test
- 14 October 2026
What matters for consent with Perfmatters
Delay all JavaScript
Scripts wait for a scroll or a click. A consent banner that waits like that appears late.
Script Manager
Perfmatters can turn scripts off on chosen pages. Turning off the consent script leaves those pages without a banner.
Local analytics
Perfmatters can serve the Google Analytics script from your own site. A local copy still sets the same cookies and still needs consent.
YouTube preview images
Perfmatters can show a preview image instead of each YouTube video until the click. The image comes from YouTube’s servers: see YouTube.
Disabling features
Perfmatters can switch off emojis, embeds and Google Maps across the site. Each one switched off is one less outside request.
Cookie Rocks with Perfmatters
- Holds the scripts it delays until the first interaction, runs them at once after consent, then leaves them to it on the next pages.
What our tests found on Perfmatters
Good to know · WP Rocket, PerfmattersWP Rocket and Perfmatters delayed scripts stay held until consent
setting “Delay JavaScript execution”
Tested with an imitated loader, not the paid plugins. Delayed scripts wait for consent, run once the visitor accepts, and never run after Reject all.
Seen in our tests, 15 October 2026, WP Rocket, Perfmatters.
Full detail
Tested with an imitated loader, not with WP Rocket or Perfmatters themselves (paid plugins): scripts delayed as rocketlazyloadscript or pmdelayedscript stay held by Cookie Rocks until consent, even after the first gesture, run as soon as the visitor accepts, and are handed back to the optimiser on the next pages; after Reject all they never run. Cookie Rocks adds its scripts to WP Rocket's delay, defer and combine exclusions and marks its head script nowprocket.
How we test it
Reproduced in our tests
It is sold by its publisher only. Our tests reproduce what it does to the scripts of a page, with its own setting names, and check that the consent script comes through unchanged.
Light as a pebble
11.43 kB once, 1.00 kB per page. Measured, not promised.
lighter than the font on this page*
Every kilobyte costs your visitors time and costs you Core Web Vitals. Cookie Rocks adds 11.43 kB to the first page a visitor opens, then 1.00 kB to each page after that, because its files stay in the browser cache. It calls no outside server and never shifts your layout.

11.43 kB First visit, in total
1.00 kB Each next page
7.74 kB JavaScript, first visit
3.48 kB Stylesheet, first visit
0 Requests to other servers
0 Layout shift caused
* The font on this page is Inter, compressed and cut down to the Latin alphabet. It still weighs 26.23 kB.
Optimisation
Other plugins of the same kind.
Questions
Does hosting Google Analytics locally remove the need for consent?
No. The script comes from your site, but it still sets Google Analytics cookies and sends data to Google.
What happens after the 30-day trial?
The banner, your visitors’ choices and your proofs of consent keep working. Without a key, most settings lock, updates and support stop. Take a key at any time and everything opens again.
For Perfmatters sites
Keep Perfmatters, add consent.
delay all, except consent
Every feature of the complete plugin for 30 days, no card.
- During the trial: everything, including the full settings and the scans
- After 30 days without a key: the banner, your visitors’ choices and your proofs of consent keep working
- What waits for a key: most settings, updates and support

Get your trial key
Your e-mail and your site. Your key arrives as soon as you confirm your e-mail.