Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <!DOCTYPE HTML>
2 <html>
3 <body>
4 <script>
5 var total = 50;
6 var loaded = 0;
7 for (var i = 0; i < total; i++) {
8 var f = document.createElement("iframe");
9 document.body.appendChild(f);
10 f.onload = function() {
11 loaded++;
12 if (loaded == total - 1)
13 document.location.replace("about:blank");
14 }
15 f.setAttribute('src', 'devicemotion_inner.html');
16 }
17 </script>
18 </body>
19 </html>