Should I clean out the php?

Should I clean out the php?

by dave cormier -
Number of replies: 0
I've been trying to figure this out for a few weeks now... I've just started doing my first theme customization and I have a bunch of questions, mostly related to size and performance. I only have so much time to finish the project and need to prioritize. My question boils down to this - Should I spend the time to shrink the moodle css and the amount of php for my customized theme?

For instance is

<?php if ($home) {  // This is what gets printed on the home page only 
?>
    <div id="header-home">
        <div class="headermain"><img src='<www.mysite/theme/mytheme/logo.jpg' /></div>
        <div class="headermenu"><?php echo $menu ?></div>
    </div>

better or worse than

<?php if ($home) {  // This is what gets printed on the home page only 
?>
    <div id="header-home">
        <div class="headermain"><img src='<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/logo.jpg' /></div>
        <div class="headermenu"><?php echo $menu ?></div>
    </div>

There are also some great css tags that are left blank in the styles in order to indicate availability... is there any advantage to deleting them and shrinking the css size. (in terms of speed and performance) Any disadvantage?

Thanks muchly,

dave.
Average of ratings: -