From bd6bcf2dd6a0667411fcedb43416309256ac5a38 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 13 Oct 2009 13:32:26 +0200 Subject: [PATCH] workaround problem of browser loading all images at once by limiting hidden images for remotes to the first 5 ones --- bin/booh-backend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/booh-backend b/bin/booh-backend index a1d1642..8d1dc4f 100644 --- a/bin/booh-backend +++ b/bin/booh-backend @@ -1275,7 +1275,7 @@ def walk_source_dir for sizeobj in $images_size html = $html_images.collect { |l| l.clone } images4js = fullscreen_images[sizeobj['name']].collect { |e| "\"#{e}\"" }.join(', ') - hiddenimages4remotes = '' + fullscreen_images[sizeobj['name']].collect { |e| "" }.join('') + '' + hiddenimages4remotes = '' + fullscreen_images[sizeobj['name']][0..4].collect { |e| "" }.join('') + '' otherimages4js = '' othersizes = [] for sizeobj2 in all_images_sizes -- 2.30.4