Safe removal of pano - iPad1 Safari crashing

  • Whats the best way to safely remove a active pano, and load a new one into the same div?
    Currently, I use the following:

    Code
    //remove existing pano
    $('#krpanoSWFObject').remove();
    
    
    
    
    //Embed new one
    embedpano({swf:swf, xml:xml, target:"pano", wmode:'opaque'});


    This method works great on desktop browers, and iPad2/3 safari. On iPad1 Safari, the first Pano loads fine, then as soon as you load a new one in it crashes Safari.

    Any clues? *blink*

  • Hi,

    Unfortunatley this is still causing iPad 1 safari to crash. The following action is within one 'click' function:


    Code
    $('#krpanoSWFObject').unload();
    $('#krpanoSWFObject').remove();
    embedpano();

    Would you recommend adding a delay in-between the unload / remove, and embedpano? The only time iPad 1 crashes is when you remove one pano, and load another. *cursing*

  • Hi,

    what iOS version do you have?

    btw - more than removing itself is not possible...
    but you can try of course to add some kind of delay, maybe this gives the Safari browser some time to run it's GC...

    generally I would recommend loading the viewer only once and load other panos only by loadpano/loadscene calls,

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!