[aur-dev] [PATCH 7/7] specify dimensions for images

elij elij.mx at gmail.com
Mon Apr 4 17:44:11 EDT 2011


- some html renderers work faster/better if you specify image dimensions to
  avoid reflow/repaits
---
 web/template/stats/updates_table.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/template/stats/updates_table.php b/web/template/stats/updates_table.php
index b9f6d6d..55ebf96 100644
--- a/web/template/stats/updates_table.php
+++ b/web/template/stats/updates_table.php
@@ -2,7 +2,7 @@
 <tr>
 <th colspan="2" class="boxSoftTitle" style="text-align: right">
 <span class="f3"><?php print __("Recent Updates") ?><span class="f5"></span></span>
-<a href="rss.php"><img src="images/feed-icon-14x14.png" alt="RSS Feed" /></a>
+<a href="rss.php"><img src="images/feed-icon-14x14.png" width="14" height="14" alt="RSS Feed" /></a>
 </th>
 </tr>
 
@@ -23,7 +23,7 @@ $sub_int = intval($row["SubmittedTS"]);
 if ($mod_int != 0):
   $modstring = gmdate("r", $mod_int);
 elseif ($sub_int != 0):
-  $modstring = '<img src="images/new.gif" alt="New!" /> ' . gmdate("r", $sub_int);
+  $modstring = '<img src="images/new.gif" width="31" height="12" alt="New!" /> ' . gmdate("r", $sub_int);
 else:
   $modstring = '(unknown)';
 endif;
-- 
1.7.4.1



More information about the aur-dev mailing list