Imporve image lazy loading

This commit is contained in:
2026-01-28 12:15:08 +01:00
parent 43fc752535
commit 80e3aa95d8
5 changed files with 47 additions and 80 deletions

View File

@@ -10,6 +10,15 @@ if (!defined('DOKU_INC')) define('DOKU_INC', __DIR__ . '/../../../');
if (!defined('DOKU_DISABLE_GZIP_OUTPUT')) define('DOKU_DISABLE_GZIP_OUTPUT', 1); // we gzip ourself here
require_once(DOKU_INC . 'inc/init.php');
// Close the session early to prevent blocking concurrent requests.
// PHP sessions are locked by default - if we hold the lock during thumbnail
// generation, all other requests from this user (including page navigation)
// will be blocked until we finish. Since we only need session data for ACL
// checks (which happen before this point via init.php), we can safely close it.
if (function_exists('session_status') && session_status() === PHP_SESSION_ACTIVE) {
session_write_close();
}
global $INPUT;
$syntax = plugin_load('syntax', 'luxtools');