Lazy Load

 
What it does

When a large display of e.g. many thumbnails or many images in a filmstrip are potentially visible, only the ones that are actually inside the viewport c.q. browser window will be loaded from the server. As soon as other images become inside the viewport e.g. by scrolling, the images will be loaded from the server. This speeds up building up the initial display of the page.

How to activate

Select one of the options not being off in Advanced settings -> System -> I -> Item 23: Lazy load

How it is implemented

The way this is achieved is as smart as simple: On building up the page content, wppa <img> tags do not contain the src="..." attribute, but the data-src="..." attribute containing the images url.
On the events DOMContentLoaded, resize, scroll, orientationchange and a few others, the function wppaMakeLazyVisible() is called that replaces the attribute data-src by src with the same url for those images that became (partially) 'in sight'.
This immediately causes the images to be loaded. The data-src attribute is removed, so the check and creation of the src attribute happens only once for each lazy load image.

Example

[wppa type="thumbs" album="205" size="300" align="center"]

Fractals made by OpaJaaps program Fractals 1.0
Owens C 04-01_alt.jpg (wppa-admin)
Rating: 5.00
172 views
Owens C 05-01.jpg (wppa-admin)
Rating: 5.00
129 views
Owens C 05-01_alt.jpg (wppa-admin)
Rating: 2.00
116 views
Owens C 05-02.jpg (wppa-admin)
Rating: 5.00
134 views
Owens C 05-08.jpg (wppa-admin)
104 views
Owens C 05-08_alt.jpg (wppa-admin)
Rating: 3.00
79 views
Owens C 05-13.jpg (wppa-admin)
67 views
Owens C 05-19.jpg (wppa-admin)
69 views
Owens C 05-19_alt.jpg (wppa-admin)
58 views
Owens C 05-20.jpg (wppa-admin)
69 views
Owens C 05-20_alt.jpg (wppa-admin)
59 views
Owens L 02-01.jpg (wppa-admin)
36 views
Owens L 02-01_alt.jpg (wppa-admin)
46 views
Owens L 02-02.jpg (wppa-admin)
39 views
Owens L 02-03.jpg (wppa-admin)
39 views
Owens L 02-04.jpg (wppa-admin)
42 views
Owens L 02-05.jpg (wppa-admin)
35 views
Owens L 02-06.jpg (wppa-admin)
1 comment
95 views
Owens L 02-07.jpg (wppa-admin)
36 views
Owens L 02-08.jpg (wppa-admin)
33 views
Owens L 02-08_alt.jpg (wppa-admin)
46 views
Owens L 03-01.jpg (wppa-admin)
37 views
Owens L 03-01_alt.jpg (wppa-admin)
21 views
Owens L 03-08.jpg (wppa-admin)
41 views
Owens L 03-08_alt.jpg (wppa-admin)
30 views
Owens O 02-01.jpg (wppa-admin)
33 views
Owens O 02-01_alt.jpg (wppa-admin)
23 views
Owens O 02-02.jpg (wppa-admin)
26 views
Owens O 02-08.jpg (wppa-admin)
21 views
Owens O 02-08_alt.jpg (wppa-admin)
24 views
Owens O 02-19.jpg (wppa-admin)
26 views
Owens O 02-19_alt.jpg (wppa-admin)
25 views
Owens O 02-20.jpg (wppa-admin)
9 views
Owens O 02-20_alt.jpg (wppa-admin)
17 views
Owens P 02-03.jpg (wppa-admin)
14 views
Owens P 02-08.jpg (wppa-admin)
12 views
Owens P 02-08_alt.jpg (wppa-admin)
19 views
Owens P 03-01.jpg (wppa-admin)
15 views
Owens P 03-01_alt.jpg (wppa-admin)
23 views
Owens P 04-01.jpg (wppa-admin)
20 views
Owens P 04-01_alt.jpg (wppa-admin)
10 views
Owens P 04-08.jpg (wppa-admin)
30 views
Owens P 04-08_alt.jpg (wppa-admin)
9 views
Quad.jpg (wppa-admin)
14 views
Quart - 2.jpg (wppa-admin)
20 views
Quart - 3.jpg (wppa-admin)
16 views
Quart - 4.jpg (wppa-admin)
22 views
Quart - 5.jpg (wppa-admin)
27 views
Smith - 1.jpg (wppa-admin)
32 views
Smith - 2.jpg (wppa-admin)
15 views
Smith - 3.jpg (wppa-admin)
38 views
Smith - 4.jpg (wppa-admin)
35 views
Spin.jpg (wppa-admin)
27 views
Sterling - 10.jpg (wppa-admin)
Rating: 1.00
11 views
Sterling - 10_alt.jpg (wppa-admin)
Rating: 2.00
40 views
Sterling - 11.jpg (wppa-admin)
Rating: 1.00
28 views
Sterling - 11_alt.jpg (wppa-admin)
Rating: 2.00
13 views
Sterling - 18.jpg (wppa-admin)
17 views
Sterling - 18_alt.jpg (wppa-admin)
15 views
Sterling - 19.jpg (wppa-admin)
20 views
Sterling - 19_alt.jpg (wppa-admin)
16 views
Sterling - 2.jpg (wppa-admin)
16 views
Sterling - 20.jpg (wppa-admin)
16 views
Sterling - 3.jpg (wppa-admin)
22 views
Sterling - 4.jpg (wppa-admin)
23 views
Sterling - 4_alt.jpg (wppa-admin)
24 views
Sterling - 5.jpg (wppa-admin)
10 views
Sterling - 52.jpg (wppa-admin)
17 views
Sterling - 52_alt.jpg (wppa-admin)
42 views
Sterling - 53.jpg (wppa-admin)
21 views
Sterling - 53_alt.jpg (wppa-admin)
10 views
Sterling - 54.jpg (wppa-admin)
18 views
Sterling - 54_alt.jpg (wppa-admin)
13 views
Sterling - 55.jpg (wppa-admin)
9 views
Sterling - 55_alt.jpg (wppa-admin)
20 views
Sterling - 5_alt.jpg (wppa-admin)
16 views
Sterling - 6.jpg (wppa-admin)
11 views
Sterling - 7.jpg (wppa-admin)
13 views
Sterling - 7_alt.jpg (wppa-admin)
24 views
Sterling - 8.jpg (wppa-admin)
12 views
Sterling - 8_alt.jpg (wppa-admin)
8 views
Sterling - 9.jpg (wppa-admin)
25 views
Sterling - 9_alt.jpg (wppa-admin)
16 views
Swanson.jpg (wppa-admin)
13 views
Tchebychev - C2.jpg (wppa-admin)
20 views
Tchebychev - C3.jpg (wppa-admin)
25 views
Tchebychev - C4.jpg (wppa-admin)
20 views
Tchebychev - C6.jpg (wppa-admin)
32 views
Tchebychev - C7.jpg (wppa-admin)
27 views
Tchebychev - S2.jpg (wppa-admin)
13 views
Tchebychev - S3.jpg (wppa-admin)
27 views
Tchebychev - S4.jpg (wppa-admin)
17 views
Tchebychev - S5.jpg (wppa-admin)
10 views
Tchebychev - S6.jpg (wppa-admin)
26 views
Tchebychev - S7.jpg (wppa-admin)
35 views
Tchebychev - T2.jpg (wppa-admin)
22 views
Tchebychev - T3.jpg (wppa-admin)
13 views
Tchebychev - T4.jpg (wppa-admin)
29 views
Tchebychev - T5.jpg (wppa-admin)
28 views
Tchebychev - T6.jpg (wppa-admin)
15 views