How should we remove things from templates... delete or comment?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jeremycs
    Senior Member
    • Jul 2004
    • 102
    • 3.0.3

    How should we remove things from templates... delete or comment?

    Are there any drawbacks to just commenting things out that you don't want?

    ie to not display 'gotonewpost' icon in threadbit.....

    I usually just comment things out so I know where they were before.
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    Not really. There may be a slight performance boost (I'm talking thousandths and ten-thousandths of seconds, probably even less) if you remove them because the PHP parsing engine will have less to go through, but it'd be fairly negligible. However if you're dealing with large chunks of code, you may want to remove them because it's more bandwidth being used.
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...