You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -20,7 +20,7 @@ Pagination improves performance and user experience for large galleries:
20
20
21
21
## Configuration Settings
22
22
23
-
Pagination is configured through four settings in the admin panel under **Settings > Gallery**.
23
+
Pagination is configured through six settings in the admin panel under **Settings > Gallery**.
24
24
25
25
### Page Size Settings
26
26
@@ -98,6 +98,32 @@ Controls how users load additional album pages. Same options as photos.
98
98
| Default | infinite_scroll |
99
99
| Location | Settings > Gallery |
100
100
101
+
### Infinite Scroll Threshold Settings
102
+
103
+
These settings control when the next page loads during infinite scroll mode.
104
+
105
+
#### photos_infinite_scroll_threshold
106
+
107
+
Controls how early to trigger loading the next page of photos.
108
+
109
+
| Property | Value |
110
+
|----------|-------|
111
+
| Type | Integer |
112
+
| Default | 2 |
113
+
| Location | Settings > Gallery |
114
+
115
+
The value represents the number of viewport heights from the bottom of the page at which to trigger loading. A higher value means earlier loading (preloading more content), but may load unnecessary data if the user doesn't scroll that far.
116
+
117
+
#### albums_infinite_scroll_threshold
118
+
119
+
Controls how early to trigger loading the next page of albums. Same behavior as photos threshold.
The AppServiceProvider pings database connections every 30 seconds to prevent timeouts: [app/Providers/AppServiceProvider.php:340-341](app/Providers/AppServiceProvider.php#L340-L341)
128
+
The AppServiceProvider pings database connections every 30 seconds to prevent timeouts: [app/Providers/AppServiceProvider.php:409-424](app/Providers/AppServiceProvider.php#L409-L424)
0 commit comments