Shape 5

Joomla Templates => Clarity - Club => : aisww July 09, 2010, 10:11:41 AM



: Unneccesary Code?
: aisww July 09, 2010, 10:11:41 AM
I recently had an alt tag issue (which I fixed) which lead me to this chunk of code in my index.php file which I believe is unnecessary:

:
<body style="background:#<?php echo $s5_backcolor?> url(<?php echo $s5_headerback?>) no-repeat;">
<div style="background:transparent url(<?php echo $s5_backimage?>) no-repeat center top;">
<!-- Header -->
<div style="display:none">
<img src="http://www.aisww.com/cms/images/Slides/bbb.jpg" alt="a"></img>
<img src="http://www.aisww.com/cms/images/Slides/chess.jpg" alt="b"></img>
<img src="http://www.aisww.com/cms/images/Slides/future.jpg" alt="c"></img>
<img src="http://www.aisww.com/cms/images/Slides/headache.jpg" alt="d"></img>
<img src="http://www.aisww.com/cms/images/Slides/infoawareness.jpg" alt="e"></img>
<img src

I am not even using some of these images anymore and I believe it is from an old module not in use anymore. Can I delete it? I'm beginning to wonder how much excerpts of code in my files are useless.


: Re: Unneccesary Code?
: jonahh July 09, 2010, 02:02:00 PM
Yes if you put it there, it looks like preloaders for those images, so if you are still using those images perhaps you want to keep it there so you don't see them loading visually when you first hit the site.

Regards,