diff --git a/doc/Support/Configuration.md b/doc/Support/Configuration.md index fbfd21fee1..8c4fc0ac31 100644 --- a/doc/Support/Configuration.md +++ b/doc/Support/Configuration.md @@ -177,6 +177,11 @@ $config['web_mouseover'] = TRUE; ``` You can disable the mouseover popover for mini graphs by setting this to FALSE. +```php +$config['enable_lazy_load'] = true; +``` +You can disable image lazy loading by setting this to false. + ```php $config['show_overview_tab'] = TRUE; ``` diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index 593f930105..74e6a8d84d 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -476,7 +476,12 @@ function generate_lazy_graph_tag($args) { $urlargs[] = $key."=".urlencode($arg); } - return ''; + if ($config['enable_lazy_load'] === true) { + return ''; + } + else { + return ''; + } }//end generate_lazy_graph_tag() diff --git a/html/index.php b/html/index.php index 9a467c13b1..2f068860f0 100644 --- a/html/index.php +++ b/html/index.php @@ -165,8 +165,14 @@ else { + +