CDN Usage
To capture performance insights (LCP, FCP, CLS, TTFB, navigation timing, etc.) from a plain HTML site without npm, load the Nano Analytics package from a CDN and enable the insights feature via the public API.
Quick notes
- Pin to an exact version (e.g.
@1.0.0) for repeatable behavior. - The ESM build uses the
+esmentrypoint on jsDelivr; the UMD bundle is provided underdist/. - Both builds expose the same runtime API; the ESM import gives you the named/default export, the UMD build attaches a global to
window.
ESM (modern browsers — recommended)
<nano-insights
projectKey="PROJECT_KEY"
/>
<script type="module">
import nanoInsights from "https://cdn.jsdelivr.net/npm/nano-insights@1.0.0/+esm";
</script>Last updated on