Safari reloads the application when swiffy is initialised

224 Views Asked by At

I have a swiffy application, it was working fine previously but after I updated to iOS 9, the safari reloads my application after 2-3 seconds and each time the application crashes.

The error shown is :A problem occurred with this webpage so it was reloaded.

On debugging I found that when I call the following code:

var stage = new swiffy.Stage(document.getElementById('swiffycontainer'),swiffyobject, {});
stage.start();

stage.start() is causing the issue. When I comment this line the blank screen loads without any error.

Please provide some work around for this.

2

There are 2 best solutions below

4
Sunny Chow On

I got this problem before. I feel that the web browser may think the loading is corrupted when it directly loads a big html file. (>5MB for iPad Air 2)

I made it use ajax to load that swiffyobject and it behaves better

How big is your files? What browser are you using? What device are you using

4
Hitesh On

Cracked it!! We should remove some glyphs from the swiffy minified code. This solved my problem