// spa-demo
SPA Navigation Demo
Click an article to simulate a client-side navigation. The real @codepenguin/adsense-simulator re-renders the <ins> slot on every transition \u2014 no page reload.
Getting Started
AdSense Simulator drops into any project as a single script or npm package. It intercepts the real AdSense loader and replaces every ad slot with a clearly-labelled placeholder — same dimensions, same layout, zero network calls.
Because the simulator runs entirely in the browser, your CI pipeline never touches Google’s servers and your team’s development environment stays clean. Local, fast, deterministic.
The quickest way to start is the CDN path: add one `<script>` tag before `</head>` with `data-remove-google-ads="true"` and you’re done. Slots appear immediately on the next page load.
Ad Slot (re-renders on nav)
Simulator Log