CDN & bundles
During local development
Section titled “During local development”Load the SDK off FRVR’s CDN:
Always in <head>, always synchronous (no async, no defer), always the dev channel during development. FRVR returns the latest released version of each bundle.
In production
Section titled “In production”When FRVR cuts a platform build, the release pipeline:
- Rewrites the two
<script src>URLs above to local paths inside the build. - Bundles the core SDK and the correct production channel bundle (
frvr-channel-facebook-instant,-ios,-google-play,-samsung-galaxy,-samsung-instant-play,-xiaomi,-web) alongside your game assets. - Packages everything into the zip (or .apk, .ipa, …) that ships to the user.
The end user loads the SDK off disk — no external fetch at runtime. You don’t self‑host, don’t swap channel bundles yourself, and don’t change your source to build for a different platform.
Bundles (for reference)
Section titled “Bundles (for reference)”| File | Target | Approx. size (gzip) |
|---|---|---|
frvr-sdk.min.js | Modern browsers (ES2017) | ~35 KB |
frvr-sdk.es6.min.js | ES2015 baseline | ~35 KB |
frvr-sdk.ie.min.js | IE11 (legacy) | ~80 KB |
frvr-channel-dev.min.js | local dev | ~2 KB |
All bundles ship with sourcemaps (*.min.js.map).