[richfaces-issues] [JBoss JIRA] Created: (RF-6006) Optimization over image spacer.gif

Tomas Cerny (JIRA) jira-events at lists.jboss.org
Mon Feb 2 18:43:44 EST 2009


Optimization over image spacer.gif 
-----------------------------------

                 Key: RF-6006
                 URL: https://jira.jboss.org/jira/browse/RF-6006
             Project: RichFaces
          Issue Type: Feature Request
    Affects Versions: 3.3.0
            Reporter: Tomas Cerny


I have noticed that wherever you create a space you use:

<td>
   <img height="1" style="border: 0pt none ; width: 0px;" src="/a4j/g/3_3_0.GAimages/spacer.gif" alt=""/>
</td>

or something similar.

Isn't this too expensive? I have this on 60 places on may page.

First optimization:

   <img class="space" src="/a4j/g/3_3_0.GAimages/spacer.gif" />

Second optimization 

  <span class="space">&#160;</span>

I will refer you at a book about CSS from Eric Meyer on CSS, where he recommends not to use images for layout. 

Just this how this will decrease size of a page and also speeds page load in browser. 



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list