[richfaces-issues] [JBoss JIRA] Updated: (RF-6006) Optimization over image spacer.gif
Tomas Cerny (JIRA)
jira-events at lists.jboss.org
Tue Feb 3 11:47:46 EST 2009
[ https://jira.jboss.org/jira/browse/RF-6006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomas Cerny updated RF-6006:
----------------------------
It is not spacer component, it is component like TabPane or Menu
For example this one
http://livedemo.exadel.com/richfaces-demo/richfaces/tabPanel.jsf?c=tabPanel&tab=usage
If you look at the source code it is everywhere
<td>
<img height="1" style="border: 0pt none ; width: 0px;" src="/a4j/g/3_3_0.GAimages/spacer.gif" alt=""/>
</td>
there is about 30 occurrences on that page.
> 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"> </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