I have a big problem with jssor Slider I made a gallery with more photos when access from iphone 4 safari crashing only iphone 4. On iphone 5 I don't have this problem.
function ScaleSlider() {
var parentWidth = jssor_slider2.$Elmt.parentNode.clientWidth;
if (parentWidth)
jssor_slider2.$ScaleWidth(Math.min(parentWidth, 960));
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider(); // Here is the problem when the page loading...
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
There are 3 ways to reduce the impact, please kindly have a try.
function ScaleSlider() {
var parentWidth = jssor_slider2.$Elmt.parentNode.clientWidth;
if (parentWidth)
jssor_slider2.$ScaleWidth(Math.min(parentWidth, 960));
else
window.setTimeout(ScaleSlider, 30);
}
ScaleSlider(); // Here is the problem when the page loading...
jssor_slider2.$Play();
$(window).bind("load", ScaleSlider);
$(window).bind("resize", ScaleSlider);
$(window).bind("orientationchange", ScaleSlider);
<div><img src2="url" /></div>