From: Andrew Dolgov Date: Wed, 20 Mar 2013 16:33:46 +0000 (+0400) Subject: optimize loading of external libraries a bit X-Git-Tag: 1.7.5~69 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b5d4716a52aab283e1d3e0527d036134c5787095;p=tt-rss.git optimize loading of external libraries a bit fix bold text in Unread articles --- diff --git a/cdm.css b/cdm.css index 0d0a007b..b793ee05 100644 --- a/cdm.css +++ b/cdm.css @@ -151,3 +151,7 @@ div.cdmHeader div.hlFeed, div.cdmHeader div.hlFeed a { div.cdmContentInner p { max-width : 650px; } + +.Unread div.cdmHeader { + font-weight : bold; +} diff --git a/include/functions.php b/include/functions.php index 66054c23..d9a3a596 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4070,4 +4070,25 @@ return $rv; } + function stylesheet_tag($filename) { + $timestamp = filemtime($filename); + + echo "\n"; + } + + function javascript_tag($filename) { + $query = ""; + + if (!(strpos($filename, "?") === FALSE)) { + $query = substr($filename, strpos($filename, "?")+1); + $filename = substr($filename, 0, strpos($filename, "?")); + } + + $timestamp = filemtime($filename); + + if ($query) $timestamp .= "&$query"; + + echo "\n"; + } + ?> diff --git a/index.php b/index.php index 68d6fc75..6d9608a3 100644 --- a/index.php +++ b/index.php @@ -44,8 +44,6 @@ login_sequence($link); - $dt_add = time(); - no_cache_incantation(); header('Content-Type: text/html; charset=utf-8'); @@ -56,9 +54,10 @@ Tiny Tiny RSS - - - + + + + @@ -74,14 +73,18 @@ - - - - - + "> - + } ?> - - - - - + "> + } ?>