we have complete working game on our server. The game works when somebody iframes it as well.
There is problem when somebody iframes it in hidden div - the game starts throwing errors immediatelly, like one below:
c2runtime.js:3319 WebGL:INVALID_VALUE: texImage2D: no canvas
Then after the div is changed to visible, the game is already bugged and won't work.
URL with iframed game: (hit F5 to get new display with advert which turns the div with game to display:none during the ad) goo.gl/tPL2GI
We can't control how other websites display our iframe so there must be workaround. Other Html5/webgl games work.