buildinternet / supersized

Full screen background slideshow plugin for jQuery
http://www.buildinternet.com/project/supersized/
Other
1.14k stars 258 forks source link

Crashes iDevice when using php to load images #107

Open catalano opened 11 years ago

catalano commented 11 years ago

I've used the suggested php code provided in the FAQ documentation link to load my images automatically from a folder. It works on all desktop platforms/browsers, however it crashes my iDevices running iOS 5.x. The crash happens a few seconds after loading the first image. If I load the images statically as in the default install, then the iDevices play nicely. I don't see the problem as reported here (https://github.com/buildinternet/supersized/issues/53), so I've not changed the position: fixed or the z-index values.

Here is the php code I'm currently using to load the photos:

<?php //path to directory to scan $directory = "photos/";

//get all image files with a .jpg extension. $images = glob($directory . "*.{jpg,JPG,jpeg,JPEG,png,PNG}", GLOB_BRACE); //print each file name $number = count($images); $start = 0;

foreach($images as $image) { echo "{image : './" . $image . "', title : '" .$image . "'}"; if ($start < $number - 1) echo ", "; $start = $start + 1; }

?>

Any ideas why this would cause a problem for the iDevices?