diff --git a/config/config.ini.example b/config/config.ini.example
index 00885c9..17bdd03 100644
--- a/config/config.ini.example
+++ b/config/config.ini.example
@@ -61,6 +61,9 @@ rss.char = ""
img.thumbnail = "true"
default.thumbnail = ""
+; Lightbox inline image handling. This can slowdown your page load, especially when Disqus enabled. "on" or "off".
+lightbox = "off"
+
; Set the theme here
views.root = "themes/logs"
diff --git a/system/includes/functions.php b/system/includes/functions.php
index becce72..ff58775 100644
--- a/system/includes/functions.php
+++ b/system/includes/functions.php
@@ -1373,7 +1373,10 @@ function authorinfo($title=null, $body=null) {
}
function head_contents($title, $description, $canonical) {
+
+ $styleImage = config('lightbox');
$output = '';
+
$title = '
' . $title . '';
$favicon = '';
$charset = '';
@@ -1388,8 +1391,16 @@ function head_contents($title, $description, $canonical) {
$jquery = '';
$lightbox = '';
$corejs = '';
- $output .= $title ."\n". $favicon ."\n". $charset ."\n". $generator ."\n". $xua ."\n". $viewport ."\n". $description ."\n". $sitemap ."\n". $canonical ."\n". $feed ."\n". $lightboxcss ."\n". $jquery ."\n". $lightbox ."\n" .$corejs ."\n";
+
+ if($styleImage == 'on') {
+ $output .= $title ."\n". $favicon ."\n". $charset ."\n". $generator ."\n". $xua ."\n". $viewport ."\n". $description ."\n". $sitemap ."\n". $canonical ."\n". $feed ."\n". $lightboxcss ."\n". $jquery ."\n". $lightbox ."\n" .$corejs ."\n";
+ }
+ else {
+ $output .= $title ."\n". $favicon ."\n". $charset ."\n". $generator ."\n". $xua ."\n". $viewport ."\n". $description ."\n". $sitemap ."\n". $canonical ."\n". $feed ."\n";
+ }
+
return $output;
+
}
// Return toolbar