HTML5 games · · 4 min read
How to publish an HTML5 game on CrazyGames, Poki and GameDistribution
What web game portals check before accepting an HTML5 game: load size, SDK calls, ads, audio, pausing, saving, mobile, plus how to ship one codebase to several portals.
Web game portals such as CrazyGames, Poki and GameDistribution bring players to browser games and share ad revenue with developers. Each portal has its own submission process and its own SDK, but they care about the same things: the game loads fast, behaves well inside their page, shows ads at sensible moments and does not break on a phone. This guide covers what we check before every submission and how to support several portals without maintaining several games.
Portal requirements change. Always read each portal's current developer documentation before you submit; treat this article as a map, not a replacement.
How the three portals differ
- CrazyGames has an open developer portal where you upload a build. Games go through a review and a testing phase with a small share of traffic before wider release. Their SDK handles ads, gameplay events and optional features such as user accounts and data saving.
- Poki is more selective and works closely with the developers it accepts. You apply with your game, and if it is a fit, you integrate the Poki SDK and go through their quality process. Poki pays attention to polish and to how the game feels on first play.
- GameDistribution distributes games to a large network of publisher sites. You create the game in their dashboard to get a game id, integrate their SDK and upload. Your game can then appear on many sites at once.
Some portals offer better terms for exclusive or early releases. Decide your strategy before you upload anywhere, because it affects the order of submissions.
1. Load fast
Players on portals decide in seconds. Keep the initial download small: compress images, use audio formats suited to the web, load later levels in the background. Show something on screen immediately, even a simple loading bar. Test on a throttled connection in your browser's developer tools, not just on your fast desktop.
2. Call the SDK at the right moments
Portals want to know what the player is doing so they can place ads well and measure engagement. The common events are:
- loading finished, when the game is ready to play,
- gameplay start and gameplay stop, around actual play (not menus),
- midgame or commercial break ads, at natural pauses such as between levels,
- rewarded ads, where the player chooses to watch an ad for a reward.
Never show an ad during active gameplay, and never on the first second of play. Reviewers check this.
3. Mute and pause during ads
When an ad starts, your game must pause and mute its audio, then resume and unmute afterwards. This is one of the most common rejection reasons. Route all audio through one master volume, and have your ad wrapper set it to zero and pause the game loop before the ad, restoring both in the ad's completion callback, including when the ad fails or is blocked.
4. Behave inside an iframe
Your game runs inside the portal's page. That means:
- do not try to navigate the top window or open pop ups,
- do not rely on third party cookies,
- handle focus: keyboard input should work after a click on the game,
- pause when the tab is hidden (the
visibilitychangeevent), - scale to whatever size the iframe gives you, including resizes.
Prevent the page from scrolling when players press the arrow keys or space bar, which is a classic iframe annoyance.
5. Save progress
Players expect to come back to their progress. localStorage works in most cases, but wrap it in try and catch, because it can be blocked. Some portal SDKs provide their own data storage; use it when available, with local storage as a fallback.
6. Mobile and orientation
A large share of portal traffic is on phones. Support touch input, keep buttons large, and decide whether your game is landscape or portrait. If it needs one orientation, show a clear "rotate your device" message in the other. Test on a real phone, not only in the desktop emulator.
7. Remove what does not belong
Portals generally do not allow external links, your own ads, other portals' branding or analytics they did not approve. Builds for a portal should contain only that portal's SDK. If you support several portals from one codebase, make sure the build for one does not leak the names or scripts of the others.
One codebase, several portals
The cleanest approach is a small adapter layer. Your game calls generic functions such as gameplayStart(), gameplayStop(), showMidgameAd() and showRewardedAd(). At build time, a flag picks which portal implementation is included. Each implementation translates those calls to its SDK, handles the pause and mute logic, and fails gracefully when an ad is not available. You then produce one zip per portal from the same source.
That is exactly what our Portal Adapter does for CrazyGames, Poki and GameDistribution. Our games Shardkeep and Orbit Clash are built this way, and their source kits include the per portal build scripts.
Before you click submit
Run through a checklist every time: load size and time, SDK events in the right order, ads muted and paused, iframe behavior, save and reload, mobile in both orientations, nothing external in the build. Our free Portal Ready Checklist is the list we use, and it fits on one page.
Want to see the result first? Play our browser games to get a feel for what a portal-ready game looks like.